Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(705)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/fetch-error-2.html

Issue 2845983002: [modules] Add several new WPT tests. (Closed)
Patch Set: Test scriptEl.onload in instantiation-error-*.html. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>html-script-module-fetch-error-2</title>
3
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script>
7 var log = [];
8
9 window.addEventListener("error", ev => log.push(ev.error));
domenic 2017/05/03 23:49:30 Does this test need allow_uncaught_exception? I a
10
11 var test_load = async_test("test_load");
12 window.addEventListener("load", test_load.step_func_done(ev => {
13 assert_equals(log.length, 1);
14 assert_equals(log[0].constructor, TypeError);
15 }));
16
17 function unreachable() {
18 log.push("unexpected");
19 }
20 </script>
21 <script type="module" src="./bad-module-specifier.js" onerror="unreachable()"></ script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698