From def92d1b8e9d373e2f6f27c366d578d97d8960c6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:34:50 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- ...default-style-meta-from-fragment.tentative.html | 46 ++++++++++++++++------ .../insertion-removing-steps/blur-event.window.js | 17 ++++++-- 2 files changed, 48 insertions(+), 15 deletions(-) (limited to 'testing/web-platform/tests/dom/nodes/insertion-removing-steps') diff --git a/testing/web-platform/tests/dom/nodes/insertion-removing-steps/Node-appendChild-script-and-default-style-meta-from-fragment.tentative.html b/testing/web-platform/tests/dom/nodes/insertion-removing-steps/Node-appendChild-script-and-default-style-meta-from-fragment.tentative.html index a9b7ba633e..fa4a987751 100644 --- a/testing/web-platform/tests/dom/nodes/insertion-removing-steps/Node-appendChild-script-and-default-style-meta-from-fragment.tentative.html +++ b/testing/web-platform/tests/dom/nodes/insertion-removing-steps/Node-appendChild-script-and-default-style-meta-from-fragment.tentative.html @@ -7,29 +7,53 @@
hello
diff --git a/testing/web-platform/tests/dom/nodes/insertion-removing-steps/blur-event.window.js b/testing/web-platform/tests/dom/nodes/insertion-removing-steps/blur-event.window.js index 4c8cd85cbf..fdca02dcda 100644 --- a/testing/web-platform/tests/dom/nodes/insertion-removing-steps/blur-event.window.js +++ b/testing/web-platform/tests/dom/nodes/insertion-removing-steps/blur-event.window.js @@ -12,8 +12,17 @@ test(() => { const button = document.body.appendChild(document.createElement('button')); button.focus(); - let blurCalled = false; - button.onblur = e => blurCalled = true; + let blur_called = false; + let focus_out_called = false; + let focus_called = false; + + button.onblur = () => { blur_called = true; } + button.onfocusout = () => { focus_out_called = true; } + document.body.addEventListener("focus", + () => { focus_called = true; }, {capture: true}); button.remove(); - assert_false(blurCalled, "Blur event was not fired"); -}, "