Bug 1472049 [wpt PR 11719] - Simplify the embedded-enforcement IDL test, a=testonly
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Wed, 25 Jul 2018 21:12:36 +0000
changeset 824159 5d414c8246b4a8ebbf25782405334d39c14aab9e
parent 824158 f271db900a41e996687f5142005df7b7f46a825b
child 824160 c1e80b161c7b1893b1d63984dfb4ea6856b78b0f
push id117837
push userbmo:aryx.bugmail@gmx-topmail.de
push dateMon, 30 Jul 2018 09:42:15 +0000
reviewerstestonly
bugs1472049, 11719
milestone63.0a1
Bug 1472049 [wpt PR 11719] - Simplify the embedded-enforcement IDL test, a=testonly Automatic update from web-platform-testsSimplify the embedded-enforcement IDL test (#11719) -- wpt-commits: 5014b841d7841330446ee045d3ced8bf4168900f wpt-pr: 11719
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/content-security-policy/embedded-enforcement/idlharness.window.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -438809,17 +438809,17 @@
    "641cfd22caf72bf72979780db9ad2c30f6a6dd81",
    "testharness"
   ],
   "content-security-policy/embedded-enforcement/allow_csp_from-header.html": [
    "70aeb617f5d580917b385346ba629e035f062c32",
    "testharness"
   ],
   "content-security-policy/embedded-enforcement/idlharness.window.js": [
-   "e009d639fbb4ede1085c365038fb79d1e0625143",
+   "a64a6a47127c3a770d9190df2d0a3ad570e32427",
    "testharness"
   ],
   "content-security-policy/embedded-enforcement/iframe-csp-attribute.html": [
    "d5a253732352f46d33c1a58d1a3183a88daa3a75",
    "testharness"
   ],
   "content-security-policy/embedded-enforcement/required-csp-header-cascade.html": [
    "94bb2f69cbef65ac9c062fe38990b5dcf4a5812c",
--- a/testing/web-platform/tests/content-security-policy/embedded-enforcement/idlharness.window.js
+++ b/testing/web-platform/tests/content-security-policy/embedded-enforcement/idlharness.window.js
@@ -1,21 +1,17 @@
 // META: script=/resources/WebIDLParser.js
 // META: script=/resources/idlharness.js
 
 // https://w3c.github.io/webappsec-csp/embedded/
 
 'use strict';
 
-promise_test(async () => {
-  const idl = await fetch('/interfaces/csp-embedded-enforcement.idl').then(r => r.text());
-  const html = await fetch('/interfaces/html.idl').then(r => r.text());
-  const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
-
-  const idl_array = new IdlArray();
-  idl_array.add_idls(idl);
-  idl_array.add_dependency_idls(html);
-  idl_array.add_dependency_idls(dom);
-  idl_array.add_objects({
-    HTMLIFrameElement: ['document.createElement("iframe")'],
-  });
-  idl_array.test();
-}, 'csp-embedded-enforcement IDL');
+idl_test(
+  ['csp-embedded-enforcement'],
+  ['html', 'dom'],
+  idl_array => {
+    idl_array.add_objects({
+      HTMLIFrameElement: ['document.createElement("iframe")'],
+    });
+  },
+  'csp-embedded-enforcement IDL'
+);