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

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

Issue 2845983002: [modules] Add several new WPT tests. (Closed)
Patch Set: 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 <html>
3 <head>
4 <title>html-script-module-evaluation-error-2</title>
domenic 2017/04/28 20:12:03 I think a good title for this test would explain w
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <h1>html-script-module-evaluation-error-2</h1>
10 <script>
11
12 setup({allow_uncaught_exception: true});
13
14 var log = [];
15
16 window.addEventListener("error", ev => log.push(ev.error));
17
18 var test_load = async_test("test_load");
19 window.addEventListener("load", test_load.step_func_done(ev => {
20 assert_equals(log.length, 2);
21 assert_equals(log[0], "cycle-tdz-access-a");
22 assert_true(log[1] instanceof ReferenceError);
23 }));
24
25 </script>
26 <script type="module" src="cycle-tdz-access.js" async></script>
27 <script type="module" src="cycle-tdz-access.js" nomodule></script>
28 <script type="module" src="cycle-tdz-access.js"></script>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698