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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/nomodule-set-on-external-module-script.html

Issue 2668783003: Import wpt@767dc2a4f049c761bd146d61de2ea860a895a624 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 10 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>An external module script with nomodule must run</title>
5 <link rel="author" title="Yusuke Suzuki" href="mailto:utatane.tea@gmail.com">
6 <link rel="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org">
7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script>
9 </head>
10 <body>
11 <script nomodule type="module" src="./resources/exports-cocoa.js"></script>
12 <script>
13
14 waitForLoadEvent = new Promise((resolve) => {
15 window.onload = resolve;
16 });
17
18 promise_test(() => {
19 return waitForLoadEvent.then(() => {
20 assert_equals(typeof cocoa, 'undefined');
21 assert_equals(typeof exportedCocoa, 'object');
22 assert_equals(exportedCocoa.taste(), 'awesome');
23 });
24 }, 'An external module script with nomodule content attribute must run');
25
26 </script>
27 </body>
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698