https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 266ac8ec00a6f75e2dc971ee3ebde12ee804d093 authored by James Graham on 12 April 2018, 14:20:58 UTC
Fix computing reftest_nodes_by_url.
Tip revision: 266ac8e
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