summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/quick/dialogs/tst_dialogs.cpp2
-rw-r--r--tests/auto/widgets/origins/tst_origins.cpp12
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/auto/quick/dialogs/tst_dialogs.cpp b/tests/auto/quick/dialogs/tst_dialogs.cpp
index e1032f16c..ecc2764fd 100644
--- a/tests/auto/quick/dialogs/tst_dialogs.cpp
+++ b/tests/auto/quick/dialogs/tst_dialogs.cpp
@@ -175,7 +175,7 @@ void tst_Dialogs::authenticationDialogRequested()
QCOMPARE(dialog->type(), type);
QCOMPARE(dialog->realm(),realm);
QCOMPARE(dialog->url(), url);
- QCOMPARE(dialog->proxyHost(), "localhost");
+ QCOMPARE(dialog->proxyHost(), QStringLiteral("localhost"));
}
void tst_Dialogs::javaScriptDialogRequested_data()
diff --git a/tests/auto/widgets/origins/tst_origins.cpp b/tests/auto/widgets/origins/tst_origins.cpp
index 364c83c3e..31d16adff 100644
--- a/tests/auto/widgets/origins/tst_origins.cpp
+++ b/tests/auto/widgets/origins/tst_origins.cpp
@@ -664,22 +664,22 @@ void tst_Origins::viewSource()
{
QVERIFY(load(QSL("view-source:file:" THIS_DIR "resources/viewSource.html")));
#ifdef Q_OS_WIN
- QCOMPARE(m_page->requestedUrl(), QSL("file:///" THIS_DIR "resources/viewSource.html"));
+ QCOMPARE(m_page->requestedUrl().toString(), QSL("file:///" THIS_DIR "resources/viewSource.html"));
#else
- QCOMPARE(m_page->requestedUrl(), QSL("file:" THIS_DIR "resources/viewSource.html"));
+ QCOMPARE(m_page->requestedUrl().toString(), QSL("file://" THIS_DIR "resources/viewSource.html"));
#endif
QVERIFY(load(QSL("view-source:qrc:/resources/viewSource.html")));
- QCOMPARE(m_page->requestedUrl(), QSL("qrc:/resources/viewSource.html"));
+ QCOMPARE(m_page->requestedUrl().toString(), QSL("qrc:/resources/viewSource.html"));
QVERIFY(load(QSL("view-source:tst:/resources/viewSource.html")));
- QCOMPARE(m_page->requestedUrl(), QSL("about:blank"));
+ QCOMPARE(m_page->requestedUrl().toString(), QSL("about:blank"));
QVERIFY(load(QSL("view-source:PathSyntax:/resources/viewSource.html")));
- QCOMPARE(m_page->requestedUrl(), QSL("about:blank"));
+ QCOMPARE(m_page->requestedUrl().toString(), QSL("about:blank"));
QVERIFY(load(QSL("view-source:PathSyntax-ViewSourceAllowed:/resources/viewSource.html")));
- QCOMPARE(m_page->requestedUrl(), QSL("pathsyntax-viewsourceallowed:/resources/viewSource.html"));
+ QCOMPARE(m_page->requestedUrl().toString(), QSL("pathsyntax-viewsourceallowed:/resources/viewSource.html"));
}
QTEST_MAIN(tst_Origins)