mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
23 lines
564 B
JavaScript
23 lines
564 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
"use strict";
|
|
|
|
// https://wicg.github.io/feature-policy/
|
|
|
|
var idlArray = new IdlArray();
|
|
|
|
function doTest(idl) {
|
|
idlArray.add_untested_idls("interface HTMLIFrameElement {};");
|
|
idlArray.add_idls(idl);
|
|
idlArray.add_objects({
|
|
HTMLIframeElement: ['document.createElement("iframe")'],
|
|
})
|
|
idlArray.test();
|
|
done();
|
|
}
|
|
|
|
promise_test(function () {
|
|
return fetch("/interfaces/feature-policy.idl").then(response => response.text())
|
|
.then(doTest);
|
|
}, "Test interfaces");
|