diff --git a/close-watcher/basic.html b/close-watcher/basic.html index 79a91e127ef684..1b092630559641 100644 --- a/close-watcher/basic.html +++ b/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/close-watcher/inside-event-listeners.html b/close-watcher/inside-event-listeners.html index 47f431e2503674..93996fb5fee328 100644 --- a/close-watcher/inside-event-listeners.html +++ b/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");