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
Raw File
WorkerGlobalScope_ErrorEvent_filename.htm
<!DOCTYPE html>
<title> WorkerGlobalScope onerror event handler argument: location </title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
// The worker events races with the window's load event; if the worker events
// arrive first, the harness will detect the error event and fail the test.
setup({ allow_uncaught_exception: true });

async_test(function(t) {
  var worker = new Worker('./support/ErrorEvent.js');
  worker.onmessage = t.step_func_done(function(e) {
    var href = location.href;
    var expected = href.substring(0, href.lastIndexOf('/')) + '/support/ErrorEvent.js';
    assert_equals(e.data.filename, expected);
  });
  worker.postMessage("Error Message");
});
</script>
back to top