summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp')
-rw-r--r--tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp b/tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp
index 1499a5f05..7bf1b5c42 100644
--- a/tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp
+++ b/tests/auto/widgets/qwebengineview/tst_qwebengineview.cpp
@@ -2348,9 +2348,9 @@ void tst_QWebEngineView::imeJSInputEvents()
// Simply committing text should not trigger any JS composition event.
QTRY_COMPARE(logLines().count(), 3);
- QCOMPARE(logLines()[0], "[object InputEvent] beforeinput commit");
- QCOMPARE(logLines()[1], "[object TextEvent] textInput commit");
- QCOMPARE(logLines()[2], "[object InputEvent] input commit");
+ QCOMPARE(logLines()[0], QStringLiteral("[object InputEvent] beforeinput commit"));
+ QCOMPARE(logLines()[1], QStringLiteral("[object TextEvent] textInput commit"));
+ QCOMPARE(logLines()[2], QStringLiteral("[object InputEvent] input commit"));
evaluateJavaScriptSync(view.page(), "clear()");
QTRY_VERIFY(evaluateJavaScriptSync(view.page(), "log.textContent + input.textContent").toString().isEmpty());
@@ -2364,10 +2364,10 @@ void tst_QWebEngineView::imeJSInputEvents()
}
QTRY_COMPARE(logLines().count(), 4);
- QCOMPARE(logLines()[0], "[object CompositionEvent] compositionstart ");
- QCOMPARE(logLines()[1], "[object InputEvent] beforeinput preedit");
- QCOMPARE(logLines()[2], "[object CompositionEvent] compositionupdate preedit");
- QCOMPARE(logLines()[3], "[object InputEvent] input preedit");
+ QCOMPARE(logLines()[0], QStringLiteral("[object CompositionEvent] compositionstart "));
+ QCOMPARE(logLines()[1], QStringLiteral("[object InputEvent] beforeinput preedit"));
+ QCOMPARE(logLines()[2], QStringLiteral("[object CompositionEvent] compositionupdate preedit"));
+ QCOMPARE(logLines()[3], QStringLiteral("[object InputEvent] input preedit"));
{
QList<QInputMethodEvent::Attribute> attributes;
@@ -2378,11 +2378,11 @@ void tst_QWebEngineView::imeJSInputEvents()
}
QTRY_COMPARE(logLines().count(), 9);
- QCOMPARE(logLines()[4], "[object InputEvent] beforeinput commit");
- QCOMPARE(logLines()[5], "[object CompositionEvent] compositionupdate commit");
- QCOMPARE(logLines()[6], "[object TextEvent] textInput commit");
- QCOMPARE(logLines()[7], "[object InputEvent] input commit");
- QCOMPARE(logLines()[8], "[object CompositionEvent] compositionend commit");
+ QCOMPARE(logLines()[4], QStringLiteral("[object InputEvent] beforeinput commit"));
+ QCOMPARE(logLines()[5], QStringLiteral("[object CompositionEvent] compositionupdate commit"));
+ QCOMPARE(logLines()[6], QStringLiteral("[object TextEvent] textInput commit"));
+ QCOMPARE(logLines()[7], QStringLiteral("[object InputEvent] input commit"));
+ QCOMPARE(logLines()[8], QStringLiteral("[object CompositionEvent] compositionend commit"));
evaluateJavaScriptSync(view.page(), "clear()");
QTRY_VERIFY(evaluateJavaScriptSync(view.page(), "log.textContent + input.textContent").toString().isEmpty());
@@ -2396,10 +2396,10 @@ void tst_QWebEngineView::imeJSInputEvents()
}
QTRY_COMPARE(logLines().count(), 4);
- QCOMPARE(logLines()[0], "[object CompositionEvent] compositionstart ");
- QCOMPARE(logLines()[1], "[object InputEvent] beforeinput preedit");
- QCOMPARE(logLines()[2], "[object CompositionEvent] compositionupdate preedit");
- QCOMPARE(logLines()[3], "[object InputEvent] input preedit");
+ QCOMPARE(logLines()[0], QStringLiteral("[object CompositionEvent] compositionstart "));
+ QCOMPARE(logLines()[1], QStringLiteral("[object InputEvent] beforeinput preedit"));
+ QCOMPARE(logLines()[2], QStringLiteral("[object CompositionEvent] compositionupdate preedit"));
+ QCOMPARE(logLines()[3], QStringLiteral("[object InputEvent] input preedit"));
{
QList<QInputMethodEvent::Attribute> attributes;
@@ -2409,11 +2409,11 @@ void tst_QWebEngineView::imeJSInputEvents()
}
QTRY_COMPARE(logLines().count(), 9);
- QCOMPARE(logLines()[4], "[object InputEvent] beforeinput ");
- QCOMPARE(logLines()[5], "[object CompositionEvent] compositionupdate ");
- QCOMPARE(logLines()[6], "[object TextEvent] textInput ");
- QCOMPARE(logLines()[7], "[object InputEvent] input null");
- QCOMPARE(logLines()[8], "[object CompositionEvent] compositionend ");
+ QCOMPARE(logLines()[4], QStringLiteral("[object InputEvent] beforeinput "));
+ QCOMPARE(logLines()[5], QStringLiteral("[object CompositionEvent] compositionupdate "));
+ QCOMPARE(logLines()[6], QStringLiteral("[object TextEvent] textInput "));
+ QCOMPARE(logLines()[7], QStringLiteral("[object InputEvent] input null"));
+ QCOMPARE(logLines()[8], QStringLiteral("[object CompositionEvent] compositionend "));
evaluateJavaScriptSync(view.page(), "clear()");
QTRY_VERIFY(evaluateJavaScriptSync(view.page(), "log.textContent + input.textContent").toString().isEmpty());