Files
firefox/testing/web-platform/tests/workers/semantics/interface-objects/004.html
T
Tom Schuster 5b4c4e2253 Bug 1557736 - Mechanical fix for polyglot HTML/JS tests. r=jgraham
This was done automatically by using the following script: https://gist.github.com/evilpie/50f63f485799c3ac9db3e93142562bca

Do note that this produces some buggy results, which I manually fixed in the next commit.

Differential Revision: https://phabricator.services.mozilla.com/D34840
2019-06-13 17:14:56 +00:00

19 lines
583 B
HTML

<!doctype html>
<title>unavailable interface objects in shared worker</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
setup(function() {
window.worker = new SharedWorker('004.js');
worker.port.onmessage = function(e) {
var result = e.data;
for (var i = 0; i < result.length; ++i) {
test(function() {
assert_false(result[i][1]);
}, "The " + result[i][0] + " interface object should not be exposed");
}
done();
}
}, {explicit_done: true});
</script>