Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the subresource-integrity IDL file #11873

Merged
merged 18 commits into from Jul 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,6 +1,7 @@
// 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/
// 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;
Expand Down
26 changes: 10 additions & 16 deletions subresource-integrity/idlharness.window.js
Expand Up @@ -5,19 +5,13 @@

'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');
idl_test(
['SRI'],
['html', 'dom', 'cssom'],
idl_array => {
idl_array.add_objects({
HTMLScriptElement: ['document.createElement("script")'],
HTMLLinkElement: ['document.createElement("link")'],
});
},
'webappsec-subresource-integrity interfaces');