qt6-bb10/tests/auto
Shawn Rutledge 90243aebb6 QTextBrowser: set base URL and document URL before loading content
setHtml() or setMarkdown() can result in attempting to load resources
such as images that are needed to render the page.  Whenever the
resource has a relative URL, loading depends on the baseURL having
already been set so that a complete URL can be constructed.
QTextDocument::resource() is called to load images, and uses baseUrl().
A little later, QTextBrowserPrivate::resolveUrl() is given an URL that
already has been extended with the baseURL if known; but it has its own
logic to resolve the resource URL against currentURL, or else to treat
it as a local file path if a file exists at that location.  The autotest
was relying on this fallback to the local relative file path before; but
now it tests both with a local filename in the current directory for the
source HTML and also with a fully resolved source URL containing the
complete file path.

Also made minor style improvements in tst_QTextBrowser's TestBrowser class.

Change-Id: I46a850015d0e9c5bc5f13b9e37179a9323ab1980
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-05-22 14:54:26 +02:00
..
android
bic/data Add binary compatibility files for 5.12 for QtBase 2018-12-21 19:42:57 +00:00
cmake Export modules' enabled/disabled features to cmake 2018-09-28 13:10:28 +00:00
concurrent Remove handling of missing Q_COMPILER_INITIALIZER_LISTS 2019-05-02 23:10:55 +00:00
corelib Long live Qt::SplitBehavior! 2019-05-21 17:50:26 +02:00
dbus Merge remote-tracking branch 'origin/5.12' into 5.13 2019-02-19 01:00:08 +01:00
gui Merge remote-tracking branch 'origin/5.13' into dev 2019-05-13 08:04:58 +02:00
guiapplauncher
installed_cmake
network Add setAutoDeleteReplies to QNetworkAccessManager 2019-05-15 12:48:07 +00:00
opengl qWaitFor: Prevent being stuck in QCoreApplication::processEvents 2019-01-09 18:10:54 +00:00
other Handle missing enum value in test 2019-05-13 16:39:44 +00:00
printsupport tst_QPrinter: stabilize qprinter test 2019-01-20 13:39:54 +00:00
shared Read font selection flags and use them when querying for metrics 2018-11-30 16:15:03 +00:00
sql QSqlError: fix redundant space in text() output 2019-03-26 06:12:10 +00:00
testlib Merge remote-tracking branch 'origin/5.13' into dev 2019-05-13 08:04:58 +02:00
tools Merge remote-tracking branch 'origin/5.13' into dev 2019-05-15 07:11:41 +02:00
widgets QTextBrowser: set base URL and document URL before loading content 2019-05-22 14:54:26 +02:00
xml Prefix QTextStream operators with Qt:: in tests 2019-05-03 09:36:36 +00:00
auto.pro winrt: Skip network auto tests for now 2018-06-22 05:02:39 +00:00
network-settings.h Port tst_qtcpsocket to the docker server 2019-02-28 15:48:31 +00:00