Changeset 264181 in webkit
- Timestamp:
- Jul 9, 2020, 11:21:38 AM (6 years ago)
- Location:
- trunk/LayoutTests/imported/w3c
- Files:
-
- 36 edited
-
ChangeLog (modified) (1 diff)
-
resources/import-expectations.json (modified) (1 diff)
-
web-platform-tests/webmessaging/Channel_postMessage_DataCloneErr.htm (modified) (1 diff)
-
web-platform-tests/webmessaging/Channel_postMessage_clone_port_error.htm (modified) (1 diff)
-
web-platform-tests/webmessaging/Channel_postMessage_ports_readonly_array.htm (modified) (1 diff)
-
web-platform-tests/webmessaging/MessageEvent.html (modified) (1 diff)
-
web-platform-tests/webmessaging/broadcastchannel/basics-expected.txt (modified) (1 diff)
-
web-platform-tests/webmessaging/broadcastchannel/basics.html (modified) (4 diffs)
-
web-platform-tests/webmessaging/broadcastchannel/interface-expected.txt (modified) (1 diff)
-
web-platform-tests/webmessaging/broadcastchannel/interface.html (modified) (5 diffs)
-
web-platform-tests/webmessaging/event.data.sub.htm (modified) (2 diffs)
-
web-platform-tests/webmessaging/message-channels/close-expected.txt (modified) (1 diff)
-
web-platform-tests/webmessaging/message-channels/close.html (modified) (1 diff)
-
web-platform-tests/webmessaging/postMessage_ArrayBuffer.sub.htm (modified) (1 diff)
-
web-platform-tests/webmessaging/postMessage_Document.htm (modified) (1 diff)
-
web-platform-tests/webmessaging/postMessage_Function.htm (modified) (1 diff)
-
web-platform-tests/webmessaging/postMessage_arrays.sub.htm (modified) (1 diff)
-
web-platform-tests/webmessaging/postMessage_asterisk_xorigin.sub.htm (modified) (2 diffs)
-
web-platform-tests/webmessaging/postMessage_dup_transfer_objects.htm (modified) (1 diff)
-
web-platform-tests/webmessaging/postMessage_invalid_targetOrigin.htm (modified) (1 diff)
-
web-platform-tests/webmessaging/postMessage_objects.sub.htm (modified) (1 diff)
-
web-platform-tests/webmessaging/with-options/broken-origin.html (modified) (1 diff)
-
web-platform-tests/webmessaging/with-options/null-transfer.html (modified) (1 diff)
-
web-platform-tests/webmessaging/with-ports/001.html (modified) (1 diff)
-
web-platform-tests/webmessaging/with-ports/003.html (modified) (1 diff)
-
web-platform-tests/webmessaging/with-ports/023.html (modified) (1 diff)
-
web-platform-tests/webmessaging/with-ports/025.html (modified) (1 diff)
-
web-platform-tests/webmessaging/with-ports/026.html (modified) (1 diff)
-
web-platform-tests/webmessaging/with-ports/027.html (modified) (1 diff)
-
web-platform-tests/webmessaging/without-ports/001.html (modified) (1 diff)
-
web-platform-tests/webmessaging/without-ports/003.html (modified) (1 diff)
-
web-platform-tests/webmessaging/without-ports/009.html (modified) (1 diff)
-
web-platform-tests/webmessaging/without-ports/024.html (modified) (1 diff)
-
web-platform-tests/webmessaging/without-ports/025-1.js (modified) (1 diff)
-
web-platform-tests/webmessaging/without-ports/025.html (modified) (1 diff)
-
web-platform-tests/webmessaging/without-ports/026.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r264176 r264181 1 2020-07-09 Chris Dumez <cdumez@apple.com> 2 3 Resync web-platform-tests/webmessaging from upstream 4 https://bugs.webkit.org/show_bug.cgi?id=214143 5 6 Reviewed by Sam Weinig. 7 8 Resync web-platform-tests/webmessaging from upstream cef93b58e7cf31f1d47. 9 10 * resources/import-expectations.json: 11 * web-platform-tests/webmessaging/*: Updated. 12 1 13 2020-07-09 Clark Wang <clark_wang@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/resources/import-expectations.json
r264038 r264181 406 406 "web-platform-tests/webdriver": "skip", 407 407 "web-platform-tests/webgl": "skip", 408 "web-platform-tests/webmessaging": " skip",408 "web-platform-tests/webmessaging": "import", 409 409 "web-platform-tests/webmessaging/": "import", 410 410 "web-platform-tests/webrtc": "import", -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/Channel_postMessage_DataCloneErr.htm
r233197 r264181 17 17 channel.port1.start(); 18 18 19 assert_throws ("DATA_CLONE_ERR", function()19 assert_throws_dom("DATA_CLONE_ERR", function() 20 20 { 21 21 channel.port1.postMessage(navigator); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/Channel_postMessage_clone_port_error.htm
r233197 r264181 17 17 channel.port1.start(); 18 18 19 assert_throws ("DATA_CLONE_ERR", function()19 assert_throws_dom("DATA_CLONE_ERR", function() 20 20 { 21 21 channel.port1.postMessage("ports", [channel.port1]); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/Channel_postMessage_ports_readonly_array.htm
r233197 r264181 29 29 { 30 30 var channel3 = new MessageChannel(); 31 assert_throws (new TypeError(), () => {31 assert_throws_js(TypeError, () => { 32 32 evt.ports.push(channel3.port1); 33 33 }, "ports is a frozen object"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/MessageEvent.html
r233197 r264181 22 22 test(function() { 23 23 var event = new MessageEvent("message"); 24 assert_throws (new TypeError(), function() {24 assert_throws_js(TypeError, function() { 25 25 event.initMessageEvent(); 26 26 }, "Not enough arguments to initMessageEvent"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/broadcastchannel/basics-expected.txt
r233197 r264181 3 3 FAIL messages are delivered in port creation order Can't find variable: BroadcastChannel 4 4 FAIL messages aren't delivered to a closed port Can't find variable: BroadcastChannel 5 FAIL messages aren't delivered to a port closed after calling postMessage. Can't find variable: BroadcastChannel 5 6 FAIL closing and creating channels during message delivery works correctly Can't find variable: BroadcastChannel 6 FAIL Closing a channel in onmessage doesn't cancel already queuedevents Can't find variable: BroadcastChannel7 FAIL Closing a channel in onmessage prevents already queued tasks from firing onmessage events Can't find variable: BroadcastChannel 7 8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/broadcastchannel/basics.html
r233197 r264181 70 70 }, 'messages aren\'t delivered to a closed port'); 71 71 72 async_test(t => { 73 let c1 = new BroadcastChannel('closed'); 74 let c2 = new BroadcastChannel('closed'); 75 let c3 = new BroadcastChannel('closed'); 76 77 c2.onmessage = t.unreached_func(); 78 c3.onmessage = t.step_func(() => t.done()); 79 c1.postMessage('test'); 80 c2.close(); 81 }, 'messages aren\'t delivered to a port closed after calling postMessage.'); 82 72 83 async_test(t => { 73 84 let c1 = new BroadcastChannel('create-in-onmessage'); … … 88 99 }, 'closing and creating channels during message delivery works correctly'); 89 100 90 // TODO(mek): Depending on https://github.com/whatwg/html/issues/1371 adjust91 // this test to match the correct behavior.92 101 async_test(t => { 93 102 let c1 = new BroadcastChannel('close-in-onmessage'); … … 109 118 'c2: first', 110 119 'c3: first', 111 'c2: done',112 120 'c3: done']); 113 121 t.done(); … … 116 124 c1.postMessage('first'); 117 125 c1.postMessage('done'); 118 }, 'Closing a channel in onmessage doesn\'t cancel already queuedevents');126 }, 'Closing a channel in onmessage prevents already queued tasks from firing onmessage events'); 119 127 120 128 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/broadcastchannel/interface-expected.txt
r233197 r264181 1 1 2 FAIL Should throw if no name is provided assert_throws: function "() => new BroadcastChannel()" threw object "ReferenceError: Can't find variable: BroadcastChannel" ("ReferenceError") expected object "TypeError" ("TypeError") 2 FAIL Should throw if no name is provided assert_throws_js: function "() => new BroadcastChannel()" threw object "ReferenceError: Can't find variable: BroadcastChannel" ("ReferenceError") expected instance of function "function TypeError() { 3 [native code] 4 }" ("TypeError") 3 5 FAIL Null name should not throw Can't find variable: BroadcastChannel 4 6 FAIL Undefined name should not throw Can't find variable: BroadcastChannel -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/broadcastchannel/interface.html
r233197 r264181 5 5 <script> 6 6 7 test(() => assert_throws (new TypeError(), () => new BroadcastChannel()),7 test(() => assert_throws_js(TypeError, () => new BroadcastChannel()), 8 8 'Should throw if no name is provided'); 9 9 … … 30 30 test(() => { 31 31 let c = new BroadcastChannel(''); 32 assert_throws (new TypeError(), () => c.postMessage());32 assert_throws_js(TypeError, () => c.postMessage()); 33 33 }, 'postMessage without parameters should throw'); 34 34 … … 52 52 let c = new BroadcastChannel(''); 53 53 c.close(); 54 assert_throws ('InvalidStateError', () => c.postMessage(''));54 assert_throws_dom('InvalidStateError', () => c.postMessage('')); 55 55 }, 'postMessage after close should throw'); 56 56 … … 62 62 test(() => { 63 63 let c = new BroadcastChannel(''); 64 assert_throws ('DataCloneError', () => c.postMessage(Symbol()));64 assert_throws_dom('DataCloneError', () => c.postMessage(Symbol())); 65 65 }, 'postMessage should throw with uncloneable data'); 66 66 … … 68 68 let c = new BroadcastChannel(''); 69 69 c.close(); 70 assert_throws ('InvalidStateError', () => c.postMessage(Symbol()));70 assert_throws_dom('InvalidStateError', () => c.postMessage(Symbol())); 71 71 }, 'postMessage should throw InvalidStateError after close, even with uncloneable data'); 72 72 -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/event.data.sub.htm
r233197 r264181 10 10 11 11 <div style="display:none"> 12 <iframe width="70%" onload="PostMessageTest()" src="{{location[scheme]}}://{{ domains[www]}}:{{location[port]}}/webmessaging/support/ChildWindowPostMessage.htm"></iframe>12 <iframe width="70%" onload="PostMessageTest()" src="{{location[scheme]}}://{{hosts[alt][]}}:{{location[port]}}/webmessaging/support/ChildWindowPostMessage.htm"></iframe> 13 13 <iframe width="70%" onload="PostMessageTest()" src="./support/ChildWindowPostMessage.htm"></iframe> 14 14 </div> … … 26 26 var TARGET1 = document.querySelectorAll("iframe")[0]; 27 27 var TARGET2 = document.querySelectorAll("iframe")[1]; 28 var XORIGIN = "{{location[scheme]}}://{{ domains[www]}}" + PORT;28 var XORIGIN = "{{location[scheme]}}://{{hosts[alt][]}}" + PORT; 29 29 var SORIGIN = "{{location[scheme]}}://{{host}}" + PORT; 30 30 var ExpectedResult = [DATA, TYPE, DATA, TYPE]; -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/message-channels/close-expected.txt
r233197 r264181 5 5 PASS Inflight messages should be delivered even when sending port is closed afterwards. 6 6 PASS Close in onmessage should not cancel inflight messages. 7 FAIL close() detaches a MessagePort (but not the one its entangled with) assert_throws : function "() => self.postMessage(null, "*", [c.port1])" did not throw7 FAIL close() detaches a MessagePort (but not the one its entangled with) assert_throws_dom: function "() => self.postMessage(null, "*", [c.port1])" did not throw 8 8 -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/message-channels/close.html
r233197 r264181 63 63 const c = new MessageChannel(); 64 64 c.port1.close(); 65 assert_throws ("DataCloneError", () => self.postMessage(null, "*", [c.port1]));65 assert_throws_dom("DataCloneError", () => self.postMessage(null, "*", [c.port1])); 66 66 self.postMessage(null, "*", [c.port2]); 67 67 }, "close() detaches a MessagePort (but not the one its entangled with)"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/postMessage_ArrayBuffer.sub.htm
r233197 r264181 10 10 11 11 <div style="display:none"> 12 <iframe width="70%" onload="PostMessageTest()" src="{{location[scheme]}}://{{ domains[www]}}:{{location[port]}}/webmessaging/support/ChildWindowPostMessage.htm"></iframe>12 <iframe width="70%" onload="PostMessageTest()" src="{{location[scheme]}}://{{hosts[alt][]}}:{{location[port]}}/webmessaging/support/ChildWindowPostMessage.htm"></iframe> 13 13 </div> 14 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/postMessage_Document.htm
r233197 r264181 26 26 test(function() 27 27 { 28 assert_throws ("DATA_CLONE_ERR", function()28 assert_throws_dom("DATA_CLONE_ERR", TARGET.contentWindow.DOMException, function() 29 29 { 30 30 TARGET.contentWindow.postMessage(DATA, "*"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/postMessage_Function.htm
r233197 r264181 26 26 test(function() 27 27 { 28 assert_throws ("DATA_CLONE_ERR", function()28 assert_throws_dom("DATA_CLONE_ERR", TARGET.contentWindow.DOMException, function() 29 29 { 30 30 TARGET.contentWindow.postMessage(DATA, "*"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/postMessage_arrays.sub.htm
r233197 r264181 10 10 11 11 <div style="display:none"> 12 <iframe width="70%" onload="PostMessageTest()" src="{{location[scheme]}}://{{ domains[www]}}:{{location[port]}}/webmessaging/support/ChildWindowPostMessage.htm"></iframe>12 <iframe width="70%" onload="PostMessageTest()" src="{{location[scheme]}}://{{hosts[alt][]}}:{{location[port]}}/webmessaging/support/ChildWindowPostMessage.htm"></iframe> 13 13 </div> 14 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/postMessage_asterisk_xorigin.sub.htm
r233197 r264181 10 10 11 11 <div style="display:none"> 12 <iframe width="70%" onload="PostMessageTest()" src="{{location[scheme]}}://{{ domains[www]}}:{{location[port]}}/webmessaging/support/ChildWindowPostMessage.htm"></iframe>12 <iframe width="70%" onload="PostMessageTest()" src="{{location[scheme]}}://{{hosts[alt][]}}:{{location[port]}}/webmessaging/support/ChildWindowPostMessage.htm"></iframe> 13 13 <iframe width="70%" onload="PostMessageTest()" src="./support/ChildWindowPostMessage.htm"></iframe> 14 14 </div> … … 24 24 var TARGET1 = document.querySelectorAll("iframe")[0]; 25 25 var TARGET2 = document.querySelectorAll("iframe")[1]; 26 var XORIGIN = "{{location[scheme]}}://{{ domains[www]}}" + PORT;26 var XORIGIN = "{{location[scheme]}}://{{hosts[alt][]}}" + PORT; 27 27 var SORIGIN = "{{location[scheme]}}://{{host}}" + PORT; 28 28 var ExpectedResult = ["#1", XORIGIN, "#2", SORIGIN]; -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/postMessage_dup_transfer_objects.htm
r233197 r264181 26 26 test(function() 27 27 { 28 assert_throws ("DATA_CLONE_ERR", function()28 assert_throws_dom("DATA_CLONE_ERR", TARGET.contentWindow.DOMException, function() 29 29 { 30 30 assert_own_property(window, "MessageChannel", "window"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/postMessage_invalid_targetOrigin.htm
r233197 r264181 28 28 test(function() 29 29 { 30 assert_throws ("SYNTAX_ERR", function()30 assert_throws_dom("SYNTAX_ERR", TARGET.contentWindow.DOMException, function() 31 31 { 32 32 TARGET.contentWindow.postMessage(DATA, DATA); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/postMessage_objects.sub.htm
r233197 r264181 10 10 11 11 <div style="display:none"> 12 <iframe width="70%" onload="PostMessageTest()" src="{{location[scheme]}}://{{ domains[www]}}:{{location[port]}}/webmessaging/support/ChildWindowPostMessage.htm"></iframe>12 <iframe width="70%" onload="PostMessageTest()" src="{{location[scheme]}}://{{hosts[alt][]}}:{{location[port]}}/webmessaging/support/ChildWindowPostMessage.htm"></iframe> 13 13 </div> 14 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/with-options/broken-origin.html
r253451 r264181 6 6 <script> 7 7 test(function() { 8 assert_throws ('SYNTAX_ERR', function() {8 assert_throws_dom('SYNTAX_ERR', function() { 9 9 postMessage('', {targetOrigin: 'http://foo bar'}); 10 10 }, 'should have failed to resolve'); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/with-options/null-transfer.html
r253451 r264181 6 6 <script> 7 7 test(function(t) { 8 assert_throws (newTypeError, () => postMessage('', {transfer: null}));8 assert_throws_js(TypeError, () => postMessage('', {transfer: null})); 9 9 }); 10 10 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/with-ports/001.html
r233197 r264181 6 6 <script> 7 7 test(function() { 8 assert_throws ('SYNTAX_ERR', function() {8 assert_throws_dom('SYNTAX_ERR', function() { 9 9 postMessage('', 'http://foo bar', []); 10 10 }, 'should have failed to resolve'); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/with-ports/003.html
r233197 r264181 6 6 <script> 7 7 test(function() { 8 assert_throws ('SYNTAX_ERR', function() {8 assert_throws_dom('SYNTAX_ERR', function() { 9 9 postMessage('', 'example.org', []); 10 10 }, 'targetOrigin is not an absolute url'); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/with-ports/023.html
r233197 r264181 6 6 <script> 7 7 test(function(t) { 8 assert_throws (newTypeError, () => postMessage('', '*', null));8 assert_throws_js(TypeError, () => postMessage('', '*', null)); 9 9 }); 10 10 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/with-ports/025.html
r233197 r264181 6 6 <script> 7 7 test(function() { 8 assert_throws (new TypeError(), function() {8 assert_throws_js(TypeError, function() { 9 9 postMessage('', '*', 1); 10 10 }); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/with-ports/026.html
r233197 r264181 6 6 <script> 7 7 test(function() { 8 assert_throws (new TypeError(), function() {8 assert_throws_js(TypeError, function() { 9 9 postMessage('', '*', {length:1}); 10 10 }); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/with-ports/027.html
r233197 r264181 19 19 channel[1] = channel.port2; 20 20 channel.length = 2; 21 assert_throws (new TypeError(),22 () => { postMessage('', '*', channel) },23 'Old-style WebIDL arrays must throw a type error');21 assert_throws_js(TypeError, 22 () => { postMessage('', '*', channel) }, 23 'Old-style WebIDL arrays must throw a type error'); 24 24 }, "Old-style array objects"); 25 25 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/without-ports/001.html
r233197 r264181 6 6 <script> 7 7 test(function() { 8 assert_throws ('SYNTAX_ERR', function() {8 assert_throws_dom('SYNTAX_ERR', function() { 9 9 postMessage('', 'http://foo bar'); 10 10 }, 'should have failed to resolve'); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/without-ports/003.html
r233197 r264181 6 6 <script> 7 7 test(function() { 8 assert_throws ('SYNTAX_ERR', function() {8 assert_throws_dom('SYNTAX_ERR', function() { 9 9 postMessage('', 'example.org'); 10 10 }, 'targetOrigin is not an absolute url'); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/without-ports/009.html
r233197 r264181 6 6 <script> 7 7 test(function() { 8 assert_throws (new TypeError(), function() {8 assert_throws_js(TypeError, function() { 9 9 postMessage(); 10 10 }); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/without-ports/024.html
r233197 r264181 10 10 ch.port1.onmessage = function(){}; 11 11 ch.port2.start(); 12 assert_throws ('DATA_CLONE_ERR', function() { ch.port2.postMessage({obj: obj}); });12 assert_throws_dom('DATA_CLONE_ERR', function() { ch.port2.postMessage({obj: obj}); }); 13 13 }); 14 14 </script> -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/without-ports/025-1.js
r233197 r264181 8 8 9 9 test(function() { 10 assert_throws (new TypeError(), function() {10 assert_throws_js(TypeError, function() { 11 11 new MessagePort() 12 12 }, "MessagePort is [[Callable]]"); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/without-ports/025.html
r233197 r264181 8 8 var ch = new MessageChannel(); 9 9 assert_true(ch.port1 instanceof MessagePort, "MessageChannel's port not an instance of MessagePort"); 10 assert_throws (new TypeError(), function () { var p = new MessagePort();}, "MessagePort is [[Callable]]");10 assert_throws_js(TypeError, function () { var p = new MessagePort();}, "MessagePort is [[Callable]]"); 11 11 }); 12 12 fetch_tests_from_worker(new Worker("025-1.js")); -
trunk/LayoutTests/imported/w3c/web-platform-tests/webmessaging/without-ports/026.html
r233197 r264181 7 7 async_test(function() { 8 8 var obj = {}; 9 obj.__defineGetter__( "field", function(){ throw new Error("getter_should_propagate_exceptions"); }); 9 var err = new Error("getter_should_propagate_exceptions"); 10 obj.__defineGetter__( "field", function(){ throw err }); 10 11 11 assert_throws (new Error("getter_should_propagate_exceptions"), function() {12 assert_throws_exactly(err, function() { 12 13 postMessage(obj, '*'); 13 14 });
Note:
See TracChangeset
for help on using the changeset viewer.