Bug 1473214 [wpt PR 9849] - Update the webappsec-subresource-integrity IDL file, a=testonly
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Fri, 06 Jul 2018 23:21:19 +0000
changeset 426095 2c34d9ca0d397c35e21ba497f27b66eb4b8506cc
parent 426094 4a19cceea8330b38850caf5c125b70d8fc22b960
child 426096 7cc70b15cd331ffebc82631c2d61fd81a26d9f97
push id34267
push userrgurzau@mozilla.com
push dateWed, 11 Jul 2018 22:05:21 +0000
treeherdermozilla-central@3aca103e4915 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1473214
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1473214 [wpt PR 9849] - Update the webappsec-subresource-integrity IDL file, a=testonly Automatic update from web-platform-testsUpdate the webappsec-subresource-integrity IDL file (#9849) * Add webappsec-subresource-integrity idl file * Updated webappsec-subresource-integrity IDL file * Add test -- wpt-commits: 194227664a71ee9950d6680ee1d0e01471c0871e wpt-pr: 9849
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/webappsec-subresource-integrity.idl
testing/web-platform/tests/subresource-integrity/idlharness.window.js
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -289303,16 +289303,21 @@
      {}
     ]
    ],
    "interfaces/web-share.idl": [
     [
      {}
     ]
    ],
+   "interfaces/webappsec-subresource-integrity.idl": [
+    [
+     {}
+    ]
+   ],
    "interfaces/webaudio.idl": [
     [
      {}
     ]
    ],
    "interfaces/webauthn.idl": [
     [
      {}
@@ -379989,16 +379994,22 @@
     ]
    ],
    "streams/writable-streams/write.sharedworker.html": [
     [
      "/streams/writable-streams/write.sharedworker.html",
      {}
     ]
    ],
+   "subresource-integrity/idlharness.window.js": [
+    [
+     "/subresource-integrity/idlharness.window.html",
+     {}
+    ]
+   ],
    "subresource-integrity/subresource-css-ed25519.tentative.html": [
     [
      "/subresource-integrity/subresource-css-ed25519.tentative.html",
      {}
     ]
    ],
    "subresource-integrity/subresource-ed25519-with-csp.tentative.html": [
     [
@@ -593578,16 +593589,20 @@
   "interfaces/web-nfc.idl": [
    "c81f70e3dd5a703ce38211227017a56a6262cadf",
    "support"
   ],
   "interfaces/web-share.idl": [
    "21b54128664c5962c29fd708ebba3d8d90987f26",
    "support"
   ],
+  "interfaces/webappsec-subresource-integrity.idl": [
+   "059b8faf32b557e4303a8c119ab46fe58ca85102",
+   "support"
+  ],
   "interfaces/webaudio.idl": [
    "a2adb319de88d1d33080a837972caefa5c5c1946",
    "support"
   ],
   "interfaces/webauthn.idl": [
    "1ae8b428644479b352fd5b1996677fd4dcdbb84b",
    "support"
   ],
@@ -618990,16 +619005,20 @@
   "subresource-integrity/ed25519-style.css": [
    "41feabebc138539a05d4b0b8833bff7440f43fd8",
    "support"
   ],
   "subresource-integrity/ed25519-style.css.headers": [
    "40773896fa85b0ac6545d3064f7e594e4e9b4339",
    "support"
   ],
+  "subresource-integrity/idlharness.window.js": [
+   "c4d81b58ea18d76c95cc84e43ca5145dbc06f0a3",
+   "testharness"
+  ],
   "subresource-integrity/matching-digest.js": [
    "c28fd94f8c51bd90da2464338e91281304818e0a",
    "support"
   ],
   "subresource-integrity/non-matching-digest.js": [
    "9e0eee85aba596fed39d426d44eb871db97d6c76",
    "support"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/webappsec-subresource-integrity.idl
@@ -0,0 +1,11 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content of this file was automatically extracted from the Subresource Integrity spec.
+// See https://w3c.github.io/webappsec-subresource-integrity/
+
+partial interface HTMLLinkElement {
+  attribute DOMString integrity;
+};
+
+partial interface HTMLScriptElement {
+  attribute DOMString integrity;
+};
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/subresource-integrity/idlharness.window.js
@@ -0,0 +1,23 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+// https://w3c.github.io/webappsec-subresource-integrity/
+
+'use strict';
+
+promise_test(async () => {
+  const srcs = ['webappsec-subresource-integrity', 'html', 'dom', 'cssom'];
+  const [idl, html, dom, cssom] = await Promise.all(
+      srcs.map(i => fetch(`/interfaces/${i}.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_dependency_idls(cssom);
+  idl_array.add_objects({
+    HTMLScriptElement: ['document.createElement("script")'],
+    HTMLLinkElement: ['document.createElement("link")'],
+  });
+  idl_array.test();
+}, 'webappsec-subresource-integrity interfaces');