https://github.com/web-platform-tests/wpt
Raw File
Tip revision: a9a28f3f94de6eae89f0780128b51e52b2d49b01 authored by Chris Nardi on 02 April 2018, 03:04:33 UTC
Update IRC archive link
Tip revision: a9a28f3
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