From 5d943c6dbd0912f0dcd71e1c14a1b1267f804efa Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Mon, 23 Jul 2018 09:55:00 -0400 Subject: [PATCH] Enable MutationObserver by default. --- resources/prefs.json | 2 +- .../css/cssom/css-style-attr-decl-block.html.ini | 7 ------- .../cssstyledeclaration-mutationrecord-001.html.ini | 8 -------- .../cssstyledeclaration-mutationrecord-002.html.ini | 5 ----- .../cssstyledeclaration-mutationrecord-003.html.ini | 5 ----- .../cssstyledeclaration-mutationrecord-004.html.ini | 5 ----- .../microtasks-and-constructors.html.ini | 9 +++++++++ .../event-loops/task_microtask_ordering.html.ini | 5 ++--- .../promise-rejection-events.html.ini | 12 ------------ tests/wpt/mozilla/meta/MANIFEST.json | 2 +- tests/wpt/mozilla/tests/mozilla/interfaces.html | 2 ++ 11 files changed, 15 insertions(+), 47 deletions(-) delete mode 100644 tests/wpt/metadata/css/cssom/css-style-attr-decl-block.html.ini delete mode 100644 tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-001.html.ini delete mode 100644 tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-002.html.ini delete mode 100644 tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-003.html.ini delete mode 100644 tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-004.html.ini create mode 100644 tests/wpt/metadata/custom-elements/microtasks-and-constructors.html.ini diff --git a/resources/prefs.json b/resources/prefs.json index 4d8aa2b85dbb..226c9628e08c 100644 --- a/resources/prefs.json +++ b/resources/prefs.json @@ -8,7 +8,7 @@ "dom.gamepad.enabled": false, "dom.microdata.testing.enabled": true, "dom.mouseevent.which.enabled": false, - "dom.mutation_observer.enabled": false, + "dom.mutation_observer.enabled": true, "dom.permissions.enabled": false, "dom.permissions.testing.allowed_in_nonsecure_contexts": false, "dom.serviceworker.timeout_seconds": 60, diff --git a/tests/wpt/metadata/css/cssom/css-style-attr-decl-block.html.ini b/tests/wpt/metadata/css/cssom/css-style-attr-decl-block.html.ini deleted file mode 100644 index 1b75a4d001c4..000000000000 --- a/tests/wpt/metadata/css/cssom/css-style-attr-decl-block.html.ini +++ /dev/null @@ -1,7 +0,0 @@ -[css-style-attr-decl-block.html] - [Changes to CSS declaration block should queue mutation record for style attribute] - expected: FAIL - - [Removing non-existing property or setting invalid value on CSS declaration block shouldn't queue mutation record] - expected: FAIL - diff --git a/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-001.html.ini b/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-001.html.ini deleted file mode 100644 index 4ff2ab535d6b..000000000000 --- a/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-001.html.ini +++ /dev/null @@ -1,8 +0,0 @@ -[cssstyledeclaration-mutationrecord-001.html] - expected: ERROR - [CSSStyleDeclaration.setPropertyValue queues a mutation record, even if not mutated] - expected: NOTRUN - - [CSSStyleDeclaration.setPropertyValue queues a mutation record when serialization is changed] - expected: NOTRUN - diff --git a/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-002.html.ini b/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-002.html.ini deleted file mode 100644 index 7627c0cf972c..000000000000 --- a/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-002.html.ini +++ /dev/null @@ -1,5 +0,0 @@ -[cssstyledeclaration-mutationrecord-002.html] - expected: ERROR - [CSSStyleDeclaration.setPropertyValue doesn't queue a mutation record when setting invalid values] - expected: NOTRUN - diff --git a/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-003.html.ini b/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-003.html.ini deleted file mode 100644 index c5d7ba94c237..000000000000 --- a/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-003.html.ini +++ /dev/null @@ -1,5 +0,0 @@ -[cssstyledeclaration-mutationrecord-003.html] - expected: ERROR - [CSSStyleDeclaration.removeProperty doesn't queue a mutation record when not actually removed, invoked from setPropertyValue] - expected: NOTRUN - diff --git a/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-004.html.ini b/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-004.html.ini deleted file mode 100644 index 5f0541798626..000000000000 --- a/tests/wpt/metadata/css/cssom/cssstyledeclaration-mutationrecord-004.html.ini +++ /dev/null @@ -1,5 +0,0 @@ -[cssstyledeclaration-mutationrecord-004.html] - expected: ERROR - [CSSStyleDeclaration.removeProperty doesn't queue a mutation record when not actually removed] - expected: NOTRUN - diff --git a/tests/wpt/metadata/custom-elements/microtasks-and-constructors.html.ini b/tests/wpt/metadata/custom-elements/microtasks-and-constructors.html.ini new file mode 100644 index 000000000000..b67eb3e525a5 --- /dev/null +++ b/tests/wpt/metadata/custom-elements/microtasks-and-constructors.html.ini @@ -0,0 +1,9 @@ +[microtasks-and-constructors.html] + [Microtasks evaluate immediately when the stack is empty inside the parser] + expected: FAIL + + [Microtasks evaluate immediately when the stack is empty inside the parser, causing the checks on no attributes to fail] + expected: FAIL + + [Microtasks evaluate afterward when the stack is not empty using createElement()] + expected: FAIL diff --git a/tests/wpt/metadata/html/webappapis/scripting/event-loops/task_microtask_ordering.html.ini b/tests/wpt/metadata/html/webappapis/scripting/event-loops/task_microtask_ordering.html.ini index 3d472d828150..f464468cd8c2 100644 --- a/tests/wpt/metadata/html/webappapis/scripting/event-loops/task_microtask_ordering.html.ini +++ b/tests/wpt/metadata/html/webappapis/scripting/event-loops/task_microtask_ordering.html.ini @@ -1,6 +1,5 @@ [task_microtask_ordering.html] - type: testharness + expected: TIMEOUT [Level 1 bossfight (synthetic click)] - expected: FAIL - bug: https://github.com/servo/servo/issues/1980 + expected: TIMEOUT diff --git a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html.ini b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html.ini index 9891711f0306..5f066f23cc35 100644 --- a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html.ini +++ b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/unhandled-promise-rejections/promise-rejection-events.html.ini @@ -34,18 +34,6 @@ [unhandledrejection: from Promise.reject, indirected through Promise.all] expected: TIMEOUT - [delayed handling: a microtask delay before attaching a handler prevents both events (Promise.reject-created promise)] - expected: FAIL - - [delayed handling: a microtask delay before attaching a handler prevents both events (immediately-rejected new Promise-created promise)] - expected: FAIL - - [delayed handling: a microtask delay before attaching the handler, and before rejecting the promise, indirected through Promise.all] - expected: FAIL - - [microtask nesting: attaching a handler inside a combination of mutationObserverMicrotask + promise microtasks] - expected: FAIL - [delayed handling: a nested-task delay before attaching a handler causes unhandledrejection] expected: TIMEOUT diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index f84e9ff6323d..be2c5c74c452 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -65267,7 +65267,7 @@ "testharness" ], "mozilla/interfaces.html": [ - "365c76c771b3d79a671b04047923f5644efb9b93", + "079065a1870bb9d3f790e9e8a3e17417c7195204", "testharness" ], "mozilla/interfaces.js": [ diff --git a/tests/wpt/mozilla/tests/mozilla/interfaces.html b/tests/wpt/mozilla/tests/mozilla/interfaces.html index 1ee52ba32f96..3d125d6f647d 100644 --- a/tests/wpt/mozilla/tests/mozilla/interfaces.html +++ b/tests/wpt/mozilla/tests/mozilla/interfaces.html @@ -152,6 +152,8 @@ "MimeType", "MimeTypeArray", "MouseEvent", + "MutationObserver", + "MutationRecord", "NamedNodeMap", "Navigator", "Node",