https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 4155e54da47ada1c49483446573fbcbe7989abb2 authored by Marcos Cáceres on 28 November 2018, 05:11:04 UTC
Check that billingAddress gets nulled and redacted
Tip revision: 4155e54
EventListener-addEventListener.sub.window.js
async_test(function(t) {
  let crossOriginFrame = document.createElement('iframe');
  crossOriginFrame.src = 'https://{{hosts[alt][]}}:{{ports[https][0]}}/common/blank.html';
  document.body.appendChild(crossOriginFrame);
  crossOriginFrame.addEventListener('load', t.step_func_done(function() {
    let crossOriginWindow = crossOriginFrame.contentWindow;
    window.addEventListener('click', crossOriginWindow);
  }));
}, "EventListener.addEventListener doesn't throw when a cross origin object is passed in.");
back to top