mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d
This commit is contained in:
parent
65dd6d4340
commit
ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<script>
|
||||
try {
|
||||
var w = new SharedWorker("shared-worker-script.js");
|
||||
w.port.onmessage = function(e) {
|
||||
parent.postMessage({ type: "shared", error: false, exception: false,
|
||||
isSecureContext: e.data }, "*");
|
||||
};
|
||||
w.onerror = function(e) {
|
||||
parent.postMessage({ type: "shared", error: true, exception: false },
|
||||
"*");
|
||||
}
|
||||
w.port.start();
|
||||
} catch (e) {
|
||||
parent.postMessage({ type: "shared", exception: true }, "*");
|
||||
}
|
||||
|
||||
try {
|
||||
var w = new SharedWorker("parent-shared-worker-script.js");
|
||||
w.port.onmessage = function(e) {
|
||||
parent.postMessage({ type: "nested", error: false, exception: false,
|
||||
isSecureContext: e.data }, "*");
|
||||
};
|
||||
w.onerror = function(e) {
|
||||
parent.postMessage({ type: "nested", error: true, exception: false },
|
||||
"*");
|
||||
}
|
||||
w.port.start();
|
||||
} catch (e) {
|
||||
parent.postMessage({ type: "nested", exception: true }, "*");
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue