https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 1e7d904d39eeb95877e4ae60011ca2ab874d5f7f authored by Anne van Kesteren on 11 May 2018, 06:10:04 UTC
add variants where .close() is called
Tip revision: 1e7d904
interfaces.any.js
// 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");
back to top