aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/module.tentative.html
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-10-04 01:26:34 -0400
committerGitHub <noreply@github.com>2019-10-04 01:26:34 -0400
commit1ab4dd135121291d838b0b764617f7aaa865cb90 (patch)
treea0cd579b111f1bb7e35d4dee7804e35cdf6bd85c /tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/module.tentative.html
parentbbc94d256c65402afd435c17a3f6c6aaf021342f (diff)
parent555167ffdb0067e0b2491a255e0ea7d61f0ad7a8 (diff)
downloadservo-1ab4dd135121291d838b0b764617f7aaa865cb90.tar.gz
servo-1ab4dd135121291d838b0b764617f7aaa865cb90.zip
Auto merge of #24358 - servo-wpt-sync:wpt_update_03-10-2019, r=servo-wpt-sync
Sync WPT with upstream (03-10-2019) Automated downstream sync of changes from upstream as of 03-10-2019. [no-wpt-sync] r? @servo-wpt-sync <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24358) <!-- Reviewable:end -->
Diffstat (limited to 'tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/module.tentative.html')
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/module.tentative.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/module.tentative.html b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/module.tentative.html
new file mode 100644
index 00000000000..93243853226
--- /dev/null
+++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/json-module/module.tentative.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>JSON modules</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id=log></div>
+<script>
+const t = async_test();
+</script>
+<script type="module" onerror="t.step(() => assert_unreached(event))">
+import v from "./module.json";
+t.step(() => {
+ assert_equals(typeof v, "object");
+ assert_array_equals(Object.keys(v), ["test"]);
+ assert_equals(v.test, true);
+ t.done();
+});
+</script>