mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-14 19:27:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
17
testing/web-platform/tests/webmessaging/with-ports/014.html
Normal file
17
testing/web-platform/tests/webmessaging/with-ports/014.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<title>structured clone vs reference</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
async_test(function(t) {
|
||||
var x = [];
|
||||
y = [x,x];
|
||||
postMessage(y, '*', []);
|
||||
onmessage = t.step_func(function(e) {
|
||||
assert_equals(e.data[0], e.data[1], 'e.data[0] === e.data[1]');
|
||||
assert_not_equals(e.data[0], x, 'e.data[0] !== x');
|
||||
t.done();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue