Changeset 287788 in webkit
- Timestamp:
- Jan 7, 2022, 2:56:47 PM (4 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 14 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/TestExpectations
r287757 r287788 5081 5081 webkit.org/b/183994 imported/w3c/web-platform-tests/css/cssom/css-style-attr-decl-block.html [ Failure ] 5082 5082 5083 # Test is crashing in Debug builds since import. 5084 webkit.org/b/234977 [ Debug ] imported/w3c/web-platform-tests/dom/events/focus-event-document-move.html [ Skip ] 5085 5083 5086 # Plugins 5084 5087 # FIXME: Remove these tests. -
trunk/LayoutTests/imported/w3c/ChangeLog
r287785 r287788 1 2022-01-07 Chris Dumez <cdumez@apple.com> 2 3 Resync web-platform-tests/dom from upstream 4 https://bugs.webkit.org/show_bug.cgi?id=234963 5 6 Reviewed by Geoffrey Garen. 7 8 Resync web-platform-tests/dom from upstream 84b2be5b17e8542dea2. 9 10 * resources/resource-files.json: 11 * web-platform-tests/dom/*: Updated. 12 1 13 2022-01-07 Chris Dumez <cdumez@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/resources/resource-files.json
r287499 r287788 1617 1617 "web-platform-tests/dom/nodes/node-appendchild-crash.html", 1618 1618 "web-platform-tests/dom/nodes/query-target-in-load-event.part.html", 1619 "web-platform-tests/dom/nodes/remove-from-shadow-host-and-adopt-into-iframe-ref.html", 1619 1620 "web-platform-tests/dom/ranges/Range-test-iframe.html", 1621 "web-platform-tests/dom/slot-recalc-ref.html", 1622 "web-platform-tests/dom/traversal/support/TreeWalker-acceptNode-filter-cross-realm-null-browsing-context-subframe.html", 1623 "web-platform-tests/dom/traversal/support/TreeWalker-acceptNode-filter-cross-realm-subframe.html", 1620 1624 "web-platform-tests/dom/traversal/unfinished/001.xml", 1621 1625 "web-platform-tests/dom/traversal/unfinished/002.xml", -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/abort/event.any-expected.txt
r286904 r287788 14 14 PASS throwIfAborted() should throw primitive abort.reason if signal aborted 15 15 PASS throwIfAborted() should not throw if signal not aborted 16 PASS AbortSignal.reason returns the same DOMException 17 PASS AbortController.signal.reason returns the same DOMException 16 18 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/abort/event.any.js
r286904 r287788 159 159 }, "throwIfAborted() should not throw if signal not aborted"); 160 160 161 test(t => { 162 const signal = AbortSignal.abort(); 163 164 assert_true( 165 signal.reason instanceof DOMException, 166 "signal.reason is a DOMException" 167 ); 168 assert_equals( 169 signal.reason, 170 signal.reason, 171 "signal.reason returns the same DOMException" 172 ); 173 }, "AbortSignal.reason returns the same DOMException"); 174 175 test(t => { 176 const controller = new AbortController(); 177 controller.abort(); 178 179 assert_true( 180 controller.signal.reason instanceof DOMException, 181 "signal.reason is a DOMException" 182 ); 183 assert_equals( 184 controller.signal.reason, 185 controller.signal.reason, 186 "signal.reason returns the same DOMException" 187 ); 188 }, "AbortController.signal.reason returns the same DOMException"); 189 161 190 done(); -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/abort/event.any.worker-expected.txt
r286904 r287788 14 14 PASS throwIfAborted() should throw primitive abort.reason if signal aborted 15 15 PASS throwIfAborted() should not throw if signal not aborted 16 PASS AbortSignal.reason returns the same DOMException 17 PASS AbortController.signal.reason returns the same DOMException 16 18 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/abort/w3c-import.log
r279015 r287788 17 17 /LayoutTests/imported/w3c/web-platform-tests/dom/abort/AbortSignal.any.js 18 18 /LayoutTests/imported/w3c/web-platform-tests/dom/abort/event.any.js 19 /LayoutTests/imported/w3c/web-platform-tests/dom/abort/reason-constructor.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/AddEventListenerOptions-passive.any-expected.txt
r285010 r287788 1 1 2 2 PASS Supports passive option on addEventListener only 3 FAIL preventDefault should be ignored if-and-only-if the passive option is true assert_equals: Incorrect defaultPrevented for options: undefined expected (boolean) true but got (undefined) undefined 3 PASS preventDefault should be ignored if-and-only-if the passive option is true 4 4 PASS returnValue should be ignored if-and-only-if the passive option is true 5 FAIL passive behavior of one listener should be unaffected by the presence of other listeners assert_equals: Incorrect defaultPrevented for options: {} expected (boolean) true but got (undefined) undefined 5 PASS passive behavior of one listener should be unaffected by the presence of other listeners 6 6 PASS Equivalence of option values 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/AddEventListenerOptions-passive.any.js
r285010 r287788 23 23 }, "Supports passive option on addEventListener only"); 24 24 25 function testPassiveValue(optionsValue, expectedDefaultPrevented ) {25 function testPassiveValue(optionsValue, expectedDefaultPrevented, existingEventTarget) { 26 26 var defaultPrevented = undefined; 27 27 var handler = function handler(e) { … … 30 30 defaultPrevented = e.defaultPrevented; 31 31 } 32 const et = new EventTarget();32 const et = existingEventTarget || new EventTarget(); 33 33 et.addEventListener('test', handler, optionsValue); 34 var uncanceled = document.body.dispatchEvent(new Event('test', {bubbles: true, cancelable: true}));34 var uncanceled = et.dispatchEvent(new Event('test', {bubbles: true, cancelable: true})); 35 35 36 36 assert_equals(defaultPrevented, expectedDefaultPrevented, "Incorrect defaultPrevented for options: " + JSON.stringify(optionsValue)); … … 90 90 et.addEventListener('test', dummyHandler2); 91 91 92 testPassiveValue(optionsValue, expectedDefaultPrevented );92 testPassiveValue(optionsValue, expectedDefaultPrevented, et); 93 93 94 94 assert_true(handlerInvoked1, "Extra passive handler not invoked"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/AddEventListenerOptions-passive.any.worker-expected.txt
r285010 r287788 1 1 2 2 PASS Supports passive option on addEventListener only 3 FAIL preventDefault should be ignored if-and-only-if the passive option is true Can't find variable: document 3 PASS preventDefault should be ignored if-and-only-if the passive option is true 4 4 PASS returnValue should be ignored if-and-only-if the passive option is true 5 FAIL passive behavior of one listener should be unaffected by the presence of other listeners Can't find variable: document 5 PASS passive behavior of one listener should be unaffected by the presence of other listeners 6 6 PASS Equivalence of option values 7 7 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventTarget-removeEventListener.any.js
r285010 r287788 3 3 // Step 1. 4 4 test(function() { 5 assert_equals( document.removeEventListener("x", null, false), undefined);6 assert_equals( document.removeEventListener("x", null, true), undefined);7 assert_equals( document.removeEventListener("x", null), undefined);5 assert_equals(globalThis.removeEventListener("x", null, false), undefined); 6 assert_equals(globalThis.removeEventListener("x", null, true), undefined); 7 assert_equals(globalThis.removeEventListener("x", null), undefined); 8 8 }, "removing a null event listener should succeed"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/EventTarget-removeEventListener.any.worker-expected.txt
r285010 r287788 1 1 2 FAIL removing a null event listener should succeed Can't find variable: document 2 PASS removing a null event listener should succeed 3 3 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/resources/w3c-import.log
r262254 r287788 16 16 List of files: 17 17 /LayoutTests/imported/w3c/web-platform-tests/dom/events/resources/event-global-extra-frame.html 18 /LayoutTests/imported/w3c/web-platform-tests/dom/events/resources/event-global-is-still-set-when-coercing-beforeunload-result-frame.html 18 19 /LayoutTests/imported/w3c/web-platform-tests/dom/events/resources/prefixed-animation-event-tests.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/events/w3c-import.log
r285010 r287788 54 54 /LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-stopPropagation-cancel-bubbling.html 55 55 /LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-subclasses-constructors.html 56 /LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-timestamp-cross-realm-getter.html 56 57 /LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-timestamp-high-resolution.html 57 58 /LayoutTests/imported/w3c/web-platform-tests/dom/events/Event-timestamp-high-resolution.https.html … … 81 82 /LayoutTests/imported/w3c/web-platform-tests/dom/events/event-disabled-dynamic.html 82 83 /LayoutTests/imported/w3c/web-platform-tests/dom/events/event-global-extra.window.js 84 /LayoutTests/imported/w3c/web-platform-tests/dom/events/event-global-is-still-set-when-coercing-beforeunload-result.html 85 /LayoutTests/imported/w3c/web-platform-tests/dom/events/event-global-set-before-handleEvent-lookup.any.js 83 86 /LayoutTests/imported/w3c/web-platform-tests/dom/events/event-global.html 84 87 /LayoutTests/imported/w3c/web-platform-tests/dom/events/event-global.worker.js 88 /LayoutTests/imported/w3c/web-platform-tests/dom/events/focus-event-document-move.html 85 89 /LayoutTests/imported/w3c/web-platform-tests/dom/events/keypress-dispatch-crash.html 86 90 /LayoutTests/imported/w3c/web-platform-tests/dom/events/legacy-pre-activation-behavior.window.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/historical-expected.txt
r285010 r287788 19 19 PASS Historical DOM features must be removed: UserDataHandler 20 20 PASS Historical DOM features must be removed: RangeException 21 FAIL Historical DOM features must be removed: SVGPathSegList assert_false: expected false got true 21 22 PASS Historical DOM features must be removed: createEntityReference 22 FAIL Historical DOM features must be removed: xmlEncoding assert_ equals: expected (undefined) undefined but got (object) null23 FAIL Historical DOM features must be removed: xmlStandalone assert_ equals: expected (undefined) undefined but got (boolean) false24 FAIL Historical DOM features must be removed: xmlVersion assert_ equals: expected (undefined) undefined but got (object) null23 FAIL Historical DOM features must be removed: xmlEncoding assert_false: expected false got true 24 FAIL Historical DOM features must be removed: xmlStandalone assert_false: expected false got true 25 FAIL Historical DOM features must be removed: xmlVersion assert_false: expected false got true 25 26 PASS Historical DOM features must be removed: strictErrorChecking 26 27 PASS Historical DOM features must be removed: domConfig -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/historical.html
r285010 r287788 7 7 function isInterfaceRemoved(name) { 8 8 test(function() { 9 assert_false(name in window) 9 10 assert_equals(window[name], undefined) 10 11 }, "Historical DOM features must be removed: " + name) … … 29 30 "TypeInfo", 30 31 "UserDataHandler", 31 "RangeException" // DOM Range 32 "RangeException", // DOM Range 33 "SVGPathSegList" 32 34 ] 33 35 removedInterfaces.forEach(isInterfaceRemoved) … … 36 38 test(function() { 37 39 var doc = document.implementation.createDocument(null,null,null) 40 assert_false(name in document) 38 41 assert_equals(document[name], undefined) 42 assert_false(name in doc) 39 43 assert_equals(doc[name], undefined) 40 44 }, "Historical DOM features must be removed: " + name) … … 66 70 // https://github.com/whatwg/html/commit/e236f46820b93d6fe2e2caae0363331075c6c4fb 67 71 assert_false("load" in document); 72 assert_equals(document["load"], undefined) 68 73 }, "document.load"); 69 74 … … 72 77 var doc = document.implementation.createDocument(null, null, null); 73 78 assert_false("load" in doc); 79 assert_equals(doc["load"], undefined) 74 80 }, "XMLDocument.load"); 75 81 76 82 test(function() { 83 assert_false("getFeature" in document.implementation) 77 84 assert_equals(document.implementation["getFeature"], undefined) 78 85 }, "DOMImplementation.getFeature() must be removed.") … … 81 88 test(function() { 82 89 var ele = document.createElementNS("test", "test") 90 assert_false(name in document.body) 83 91 assert_equals(document.body[name], undefined) 92 assert_false(name in ele) 84 93 assert_equals(ele[name], undefined) 85 94 }, "Historical DOM features must be removed: " + name) … … 96 105 test(function() { 97 106 var attr = document.createAttribute("test") 107 assert_false(name in attr) 98 108 assert_equals(attr[name], undefined) 99 109 }, "Attr member must be removed: " + name) … … 108 118 test(function() { 109 119 var doctype = document.implementation.createDocumentType("test", "", "") 120 assert_false(name in doctype) 110 121 assert_equals(doctype[name], undefined) 111 122 }, "DocumentType member must be removed: " + name) … … 121 132 test(function() { 122 133 var text = document.createTextNode("test") 134 assert_false(name in text) 123 135 assert_equals(text[name], undefined) 124 136 }, "Text member must be removed: " + name) … … 135 147 var doctype = document.implementation.createDocumentType("test", "", "") 136 148 var text = document.createTextNode("test") 149 assert_false(name in doc) 137 150 assert_equals(doc[name], undefined) 151 assert_false(name in doctype) 138 152 assert_equals(doctype[name], undefined) 153 assert_false(name in text) 139 154 assert_equals(text[name], undefined) 140 155 }, "Node member must be removed: " + name) … … 156 171 function isRemovedFromWindow(name) { 157 172 test(function() { 173 assert_false(name in window) 158 174 assert_equals(window[name], undefined) 159 175 }, "Window member must be removed: " + name) … … 166 182 function isRemovedFromEvent(name) { 167 183 test(() => { 184 assert_false(name in Event) 168 185 assert_equals(Event[name], undefined) 169 186 }, "Event should not have this constant: " + name) … … 195 212 EventPrototypeRemoved.forEach(name => { 196 213 test(() => { 214 assert_false(name in Event.prototype) 197 215 assert_equals(Event.prototype[name], undefined) 216 assert_false(name in new Event("test")) 198 217 assert_equals((new Event("test"))[name], undefined) 199 218 }, "Event.prototype should not have this property: " + name) -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/w3c-import.log
r279015 r287788 262 262 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/remove-and-adopt-thcrash.html 263 263 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/remove-from-shadow-host-and-adopt-into-iframe-expected.html 264 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/remove-from-shadow-host-and-adopt-into-iframe-ref.html 264 265 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/remove-from-shadow-host-and-adopt-into-iframe.html 265 266 /LayoutTests/imported/w3c/web-platform-tests/dom/nodes/remove-unscopable.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/traversal/support/w3c-import.log
r248705 r287788 15 15 ------------------------------------------------------------------------ 16 16 List of files: 17 /LayoutTests/imported/w3c/web-platform-tests/dom/traversal/support/TreeWalker-acceptNode-filter-cross-realm-null-browsing-context-subframe.html 18 /LayoutTests/imported/w3c/web-platform-tests/dom/traversal/support/TreeWalker-acceptNode-filter-cross-realm-subframe.html 17 19 /LayoutTests/imported/w3c/web-platform-tests/dom/traversal/support/assert-node.js -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/traversal/w3c-import.log
r248705 r287788 18 18 /LayoutTests/imported/w3c/web-platform-tests/dom/traversal/NodeIterator-removal.html 19 19 /LayoutTests/imported/w3c/web-platform-tests/dom/traversal/NodeIterator.html 20 /LayoutTests/imported/w3c/web-platform-tests/dom/traversal/TreeWalker-acceptNode-filter-cross-realm-null-browsing-context.html 21 /LayoutTests/imported/w3c/web-platform-tests/dom/traversal/TreeWalker-acceptNode-filter-cross-realm.html 20 22 /LayoutTests/imported/w3c/web-platform-tests/dom/traversal/TreeWalker-acceptNode-filter.html 21 23 /LayoutTests/imported/w3c/web-platform-tests/dom/traversal/TreeWalker-basic.html -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/w3c-import.log
r274167 r287788 23 23 /LayoutTests/imported/w3c/web-platform-tests/dom/idlharness.window.js 24 24 /LayoutTests/imported/w3c/web-platform-tests/dom/interface-objects.html 25 /LayoutTests/imported/w3c/web-platform-tests/dom/slot-recalc-ref.html 25 26 /LayoutTests/imported/w3c/web-platform-tests/dom/slot-recalc.html 26 27 /LayoutTests/imported/w3c/web-platform-tests/dom/svg-insert-crash.html
Note:
See TracChangeset
for help on using the changeset viewer.