https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c2b8c888626597462c9e9261aa1bedd4c4edb850 authored by Frédéric Wang on 27 June 2018, 07:37:03 UTC
Convert to manual test, add a version where the click happens from a subframe
Tip revision: c2b8c88
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