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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/semantics/scripting-1/the-script-element/module/late-namespace-request.html

Issue 2845983002: [modules] Add several new WPT tests. (Closed)
Patch Set: Move on top of other CL. Created 3 years, 6 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>Late namespace request</title>
3
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script>
7 window.log = [];
8
9 const test_load = async_test(
10 "Test the situation where a module is instantiated without the " +
11 "need for a namespace object, but later on a different module " +
12 "requests the namespace.");
13 window.addEventListener("load", test_load.step_func_done(ev => {
14 assert_array_equals(log,
15 ["export-something",
16 "import-something-namespace", 42, 43]);
17 }));
18 </script>
19 <script type="module" src="export-something.js"></script>
20 <script type="module" src="import-something-namespace.js"></script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698