OLD | NEW |
1 <html> | 1 <html> |
2 <head></head> | 2 <head></head> |
3 <body> | 3 <body> |
4 <div id="description"></div> | 4 <div id="description"></div> |
5 <div id="console"></div> | 5 <div id="console"></div> |
6 <script> | 6 <script> |
7 if (window.testRunner) { | 7 if (window.testRunner) { |
8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
9 testRunner.waitUntilDone(); | 9 testRunner.waitUntilDone(); |
10 } | 10 } |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 tryPostMessageFunction(window.postMessage, '7a', [channel1a.port1, channel1a.por
t2], '*'); | 55 tryPostMessageFunction(window.postMessage, '7a', [channel1a.port1, channel1a.por
t2], '*'); |
56 var channel2 = new MessageChannel; | 56 var channel2 = new MessageChannel; |
57 tryPostMessageFunction(window.postMessage, '7', '*', [channel2.port1, channel2.p
ort2]); | 57 tryPostMessageFunction(window.postMessage, '7', '*', [channel2.port1, channel2.p
ort2]); |
58 var channel3 = new MessageChannel; | 58 var channel3 = new MessageChannel; |
59 tryPostMessage(2147483648, '*', null); | 59 tryPostMessage(2147483648, '*', null); |
60 tryPostMessageFunction(window.postMessage, channel3.port1, '*', [channel3.port1,
channel3.port2]); | 60 tryPostMessageFunction(window.postMessage, channel3.port1, '*', [channel3.port1,
channel3.port2]); |
61 var channel4 = new MessageChannel; | 61 var channel4 = new MessageChannel; |
62 tryPostMessageFunction(window.postMessage, channel4.port1, '*', [channel4.port1,
channel4.port2]); | 62 tryPostMessageFunction(window.postMessage, channel4.port1, '*', [channel4.port1,
channel4.port2]); |
63 var channel5 = new MessageChannel; | 63 var channel5 = new MessageChannel; |
64 tryPostMessageFunction(window.postMessage, [channel5.port1, channel5.port2], '*'
, [channel5.port1, channel5.port2]); | 64 tryPostMessageFunction(window.postMessage, [channel5.port1, channel5.port2], '*'
, [channel5.port1, channel5.port2]); |
| 65 tryPostMessageFunction(window.postMessage, 'data', '*', [channel5.port1, channel
5.port2], true); |
| 66 tryPostMessageFunction(window.postMessage, [channel5.port1, channel5.port2], '*'
, [], true); |
65 | 67 |
66 var arrayBuffer = new ArrayBuffer(30); | 68 var arrayBuffer = new ArrayBuffer(30); |
67 var int8View = new Int8Array(arrayBuffer, 2, 10); | 69 var int8View = new Int8Array(arrayBuffer, 2, 10); |
68 tryPostMessageFunction(window.postMessage, arrayBuffer, '*', [arrayBuffer]); | 70 tryPostMessageFunction(window.postMessage, arrayBuffer, '*', [arrayBuffer]); |
69 if (!(arrayBuffer.byteLength === 0)) { | 71 if (!(arrayBuffer.byteLength === 0)) { |
70 console.innerHTML += "FAIL: arrayBuffer not neutered; byteLength = " + array
Buffer.byteLength + "<br>"; | 72 console.innerHTML += "FAIL: arrayBuffer not neutered; byteLength = " + array
Buffer.byteLength + "<br>"; |
71 } | 73 } |
72 else { | 74 else { |
73 console.innerHTML += "PASS: arrayBuffer neutered<br>"; | 75 console.innerHTML += "PASS: arrayBuffer neutered<br>"; |
74 } | 76 } |
75 | 77 |
76 if (!(int8View.length == 0)) { | 78 if (!(int8View.length == 0)) { |
77 console.innerHTML += "FAIL: view was not neutered; length = " + int8View.len
gth + "<br>"; | 79 console.innerHTML += "FAIL: view was not neutered; length = " + int8View.len
gth + "<br>"; |
78 } | 80 } |
79 else { | 81 else { |
80 console.innerHTML += "PASS: view neutered<br>" | 82 console.innerHTML += "PASS: view neutered<br>" |
81 } | 83 } |
| 84 tryPostMessageFunction(window.postMessage, arrayBuffer, '*', [], true); |
| 85 tryPostMessageFunction(window.postMessage, 'data', '*', [arrayBuffer], true); |
82 | 86 |
| 87 tryPostMessageFunction(window.postMessage, int8View, '*', [], true); |
| 88 tryPostMessageFunction(window.postMessage, 'data', '*', [int8View], true); |
83 | 89 |
84 tryPostMessageFunction(window.postMessage, 'done', '*'); | 90 tryPostMessageFunction(window.postMessage, 'done', '*'); |
85 </script> | 91 </script> |
86 </body> | 92 </body> |
87 </html> | 93 </html> |
OLD | NEW |