mirror of
https://github.com/servo/servo
synced 2026-04-29 10:57:43 +02:00
22 lines
571 B
HTML
22 lines
571 B
HTML
<!doctype html>
|
|
<title>base url, shared worker</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id=log></div>
|
|
<script>
|
|
var t = async_test();
|
|
var i = 0;
|
|
function runtest() {
|
|
i++;
|
|
if (i != 2)
|
|
return;
|
|
var worker = new SharedWorker('support/006-1.js','');
|
|
worker.port.onmessage = this.step_func(function(e) {
|
|
assert_true(e.data);
|
|
this.done();
|
|
});
|
|
}
|
|
</script>
|
|
<iframe src=001-1.xml onload="t.step(runtest);"></iframe>
|
|
<iframe src=support/001-1.xml onload="t.step(runtest);"></iframe>
|