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
This commit is contained in:
Luke Bjerring 2018-07-06 23:21:19 +00:00 коммит произвёл James Graham
Родитель 2940b7a5bc
Коммит d035eed516
3 изменённых файлов: 53 добавлений и 0 удалений

Просмотреть файл

@ -289308,6 +289308,11 @@
{}
]
],
"interfaces/webappsec-subresource-integrity.idl": [
[
{}
]
],
"interfaces/webaudio.idl": [
[
{}
@ -379994,6 +379999,12 @@
{}
]
],
"subresource-integrity/idlharness.window.js": [
[
"/subresource-integrity/idlharness.window.html",
{}
]
],
"subresource-integrity/subresource-css-ed25519.tentative.html": [
[
"/subresource-integrity/subresource-css-ed25519.tentative.html",
@ -593583,6 +593594,10 @@
"21b54128664c5962c29fd708ebba3d8d90987f26",
"support"
],
"interfaces/webappsec-subresource-integrity.idl": [
"059b8faf32b557e4303a8c119ab46fe58ca85102",
"support"
],
"interfaces/webaudio.idl": [
"a2adb319de88d1d33080a837972caefa5c5c1946",
"support"
@ -618995,6 +619010,10 @@
"40773896fa85b0ac6545d3064f7e594e4e9b4339",
"support"
],
"subresource-integrity/idlharness.window.js": [
"c4d81b58ea18d76c95cc84e43ca5145dbc06f0a3",
"testharness"
],
"subresource-integrity/matching-digest.js": [
"c28fd94f8c51bd90da2464338e91281304818e0a",
"support"

Просмотреть файл

@ -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;
};

Просмотреть файл

@ -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');