diff --git a/testing/web-platform/tests/close-watcher/basic.html b/testing/web-platform/tests/close-watcher/basic.html index 79a91e127ef68..1b09263055964 100644 --- a/testing/web-platform/tests/close-watcher/basic.html +++ b/testing/web-platform/tests/close-watcher/basic.html @@ -14,7 +14,7 @@ watcher.requestClose(); - assert_array_equals(events, ["cancel[cancelable=false]", "close"]); + assert_array_equals(events, ["cancel[cancelable=true]", "close"]); }, "requestClose() with no user activation"); test(t => { @@ -43,10 +43,10 @@ let watcher = createRecordingCloseWatcher(t, events); watcher.requestClose(); - assert_array_equals(events, ["cancel[cancelable=false]", "close"]); + assert_array_equals(events, ["cancel[cancelable=true]", "close"]); watcher.destroy(); - assert_array_equals(events, ["cancel[cancelable=false]", "close"]); + assert_array_equals(events, ["cancel[cancelable=true]", "close"]); }, "requestClose() then destroy()"); test(t => { diff --git a/testing/web-platform/tests/close-watcher/inside-event-listeners.html b/testing/web-platform/tests/close-watcher/inside-event-listeners.html index 47f431e250367..93996fb5fee32 100644 --- a/testing/web-platform/tests/close-watcher/inside-event-listeners.html +++ b/testing/web-platform/tests/close-watcher/inside-event-listeners.html @@ -30,10 +30,10 @@ watcher.onclose = () => { watcher.destroy(); } watcher.requestClose(); - assert_array_equals(events, ["cancel[cancelable=false]", "close"]); + assert_array_equals(events, ["cancel[cancelable=true]", "close"]); watcher.requestClose(); - assert_array_equals(events, ["cancel[cancelable=false]", "close"], "since it was inactive, no more events fired"); + assert_array_equals(events, ["cancel[cancelable=true]", "close"], "since it was inactive, no more events fired"); }, "destroy() inside onclose"); promise_test(async t => { @@ -58,10 +58,10 @@ watcher.onclose = () => { watcher.close(); } watcher.requestClose(); - assert_array_equals(events, ["cancel[cancelable=false]", "close"]); + assert_array_equals(events, ["cancel[cancelable=true]", "close"]); watcher.requestClose(); - assert_array_equals(events, ["cancel[cancelable=false]", "close"], "since it was inactive, no more events fired"); + assert_array_equals(events, ["cancel[cancelable=true]", "close"], "since it was inactive, no more events fired"); }, "close() inside onclose"); promise_test(async t => { @@ -86,9 +86,9 @@ watcher.onclose = () => { watcher.requestClose(); } watcher.requestClose(); - assert_array_equals(events, ["cancel[cancelable=false]", "close"]); + assert_array_equals(events, ["cancel[cancelable=true]", "close"]); watcher.requestClose(); - assert_array_equals(events, ["cancel[cancelable=false]", "close"], "since it was inactive, no more events fired"); + assert_array_equals(events, ["cancel[cancelable=true]", "close"], "since it was inactive, no more events fired"); }, "requestClose() inside onclose");