Revision 790e6601ee8b4b412b6ad9f6fde466b7ccb9cb7e authored by Darren Shen on 19 March 2018, 00:26:33 UTC, committed by Blink WPT Bot on 19 March 2018, 00:36:58 UTC
This patch: - Adds mutation tests for CSSUnitValue.value. - Clean up code style. Bug: 774887 Change-Id: I5a6398c4a4a2ad86f60165780ee8d48bb3d8b0a1 Reviewed-on: https://chromium-review.googlesource.com/954642 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by: nainar <nainar@chromium.org> Cr-Commit-Position: refs/heads/master@{#543959}
1 parent e87f380
WorkerGlobalScope_setTimeout.htm
<!DOCTYPE html>
<title> WorkerGlobalScope API: setTimeout() </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("TimeoutHandler");
});
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...