| Index: third_party/WebKit/LayoutTests/imported/wpt/workers/WorkerGlobalScope_setInterval.htm
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/workers/WorkerGlobalScope_setInterval.htm b/third_party/WebKit/LayoutTests/imported/wpt/workers/WorkerGlobalScope_setInterval.htm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4e147fbf60f11c43df29df42890ab4ba41782425
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/workers/WorkerGlobalScope_setInterval.htm
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<title> WorkerGlobalScope API: setInterval() </title>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<div id=log></div>
|
| +<script>
|
| +async_test(function(t) {
|
| + var result = [];
|
| + var worker = new Worker('./support/Timer.js');
|
| + worker.onmessage = t.step_func(function(e) {
|
| + result.push(e.data);
|
| + if (result.length == 3) {
|
| + assert_array_equals(result, ["hello", "worker", "worker"]);
|
| + worker.onmessage = t.unreached_func('Unexpected message event');
|
| + setTimeout(t.step_func_done(), 100);
|
| + }
|
| + });
|
| + worker.postMessage("IntervalHandler");
|
| +});
|
| +</script>
|
|
|