From fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:14:29 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- .../infrastructure/channels/test_serialize.html | 2 +- .../infrastructure/expected-fail/user-prompt.html | 28 ++++++++++++++++++++++ .../expected-fail/user-prompt.html.ini | 17 +++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 testing/web-platform/tests/infrastructure/expected-fail/user-prompt.html create mode 100644 testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/user-prompt.html.ini (limited to 'testing/web-platform/tests/infrastructure') diff --git a/testing/web-platform/tests/infrastructure/channels/test_serialize.html b/testing/web-platform/tests/infrastructure/channels/test_serialize.html index 88a9ce5221..59226db6e7 100644 --- a/testing/web-platform/tests/infrastructure/channels/test_serialize.html +++ b/testing/web-platform/tests/infrastructure/channels/test_serialize.html @@ -27,7 +27,7 @@ for (let [name, obj] of Object.entries(objects)) { promise_test(async t => { let remoteValue = RemoteObject.from(document.head); let result = await remote.call(inputValue => { - if (!inputValue instanceof RemoteObject) { + if (!(inputValue instanceof RemoteObject)) { throw new AssertionError(`Expected RemoteObject`); } return inputValue; diff --git a/testing/web-platform/tests/infrastructure/expected-fail/user-prompt.html b/testing/web-platform/tests/infrastructure/expected-fail/user-prompt.html new file mode 100644 index 0000000000..adac0bc909 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/expected-fail/user-prompt.html @@ -0,0 +1,28 @@ + +Unhandled user prompt dismisses and notifies + + + + + + + + + diff --git a/testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/user-prompt.html.ini b/testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/user-prompt.html.ini new file mode 100644 index 0000000000..45ebf7acc3 --- /dev/null +++ b/testing/web-platform/tests/infrastructure/metadata/infrastructure/expected-fail/user-prompt.html.ini @@ -0,0 +1,17 @@ +[user-prompt.html?type=alert] + expected: ERROR + +[user-prompt.html?type=confirm] + expected: ERROR + +[user-prompt.html?type=prompt] + expected: ERROR + +[user-prompt.html?type=alert&wait] + expected: ERROR + +[user-prompt.html?type=confirm&wait] + expected: ERROR + +[user-prompt.html?type=prompt&wait] + expected: ERROR -- cgit v1.2.3