https://github.com/web-platform-tests/wpt
Revision 244f93ec20c9995119384169f1d5ee1fac6a8fe9 authored by Robert Ma on 23 March 2018, 22:18:18 UTC, committed by Chromium WPT Sync on 23 March 2018, 22:18:18 UTC
html.idl changed in upstream
https://github.com/w3c/web-platform-tests/pull/10110
and imported in
https://crrev.com/c/978021

Bug: 825191
Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a
Reviewed-on: https://chromium-review.googlesource.com/978508
Commit-Queue: Robert Ma <robertma@chromium.org>
Reviewed-by: Joshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#545588}
1 parent 7991f4b
Raw File
Tip revision: 244f93ec20c9995119384169f1d5ee1fac6a8fe9 authored by Robert Ma on 23 March 2018, 22:18:18 UTC
Fix some IDL tests after html.idl includes SVGElement
Tip revision: 244f93e
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