https://github.com/web-platform-tests/wpt
Revision f61fc86b7b84666c103648d5c798322bfcc3f239 authored by James Graham on 29 January 2018, 11:46:51 UTC, committed by jgraham on 25 April 2018, 18:25:55 UTC
This is a docker image based on the Ubuntu1604 base, with the runtime
deps of Firefox and Chrome installed. There is also a shallow clone of
wpt to act as a placeholder. The start.sh script will update this
clone and start Xvfb, so it's possible to run tests.
1 parent b6fc6d7
Raw File
Tip revision: f61fc86b7b84666c103648d5c798322bfcc3f239 authored by James Graham on 29 January 2018, 11:46:51 UTC
Add a docker image designed for running tests.
Tip revision: f61fc86
WorkerGlobalScope_close.htm
<!DOCTYPE html>
<title> WorkerGlobalScope close(): clear events queue </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function(t) {
  var worker = new Worker('./support/WorkerClose.js');
  worker.onmessage = t.step_func(function(e) {
    assert_equals(e.data, "ping");
    worker.onmessage = t.unreached_func("Unexpected message event");
    worker.postMessage("pong");
    setTimeout(t.step_func_done(), 100);
  });
  worker.postMessage("ping");
});
</script>
back to top