diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2016-04-21 02:49:50 -0700 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-05-22 10:06:32 +0000 |
commit | 96c9fa3d9108c60ef17a091e48e6f056eaa8fd34 (patch) | |
tree | 9a4d48f521e9947400c24b6e9d97b3b2ca23b6b0 /tests | |
parent | 6c344184df2dd6573681a0d2022daa55b6a36f38 (diff) |
Update test_prompt
If the user clicks "cancel" the prompt() method returns null.
This is the expected behavior in browsers, see the specification:
https://dev.w3.org/html5/spec-preview/user-prompts.html
Change-Id: I2089b7fe551d454904bc1b5b07a28e5e49ba8dfd
Task-number: QTBUG-51749
Reviewed-by: Michael BrĂ¼ning <michael.bruning@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/quick/qmltests/data/tst_javaScriptDialogs.qml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/quick/qmltests/data/tst_javaScriptDialogs.qml b/tests/auto/quick/qmltests/data/tst_javaScriptDialogs.qml index 117df5776..73673f511 100644 --- a/tests/auto/quick/qmltests/data/tst_javaScriptDialogs.qml +++ b/tests/auto/quick/qmltests/data/tst_javaScriptDialogs.qml @@ -110,8 +110,7 @@ TestWebEngineView { webEngineView.reload() verify(webEngineView.waitForLoadSucceeded()) compare(JSDialogParams.dialogCount, 2) - expectFail("", "QTBUG-51749") - compare(webEngineView.title, "prompt.html") + compare(webEngineView.title, "null") } } } |