function testIframe() {
    var iframe = document.createElement('iframe');
    iframe.onload = function() {
      assertThrowsError(iframe.contentWindow.document.write);
      succeed();
    };
    iframe.src = 'iframe.html';
    document.body.appendChild(iframe);
  }
/**
   * Tests that restrictions apply to iframes as well.
   */
Tests that restrictions apply to iframes as well.
Tests that restrictions apply to iframes as well .
function testIframe() {
    var iframe = document.createElement('iframe');
    iframe.onload = function() {
      assertThrowsError(iframe.contentWindow.document.write);
      succeed();
    };
    iframe.src = 'iframe.html';
    document.body.appendChild(iframe);
  }
function testIframe ( ) { var iframe = document . createElement ( 'iframe' ) ; iframe . onload = function ( ) { assertThrowsError ( iframe . contentWindow . document . write ) ; succeed ( ) ; } ; iframe . src = 'iframe.html' ; document . body . appendChild ( iframe ) ; }
Tests that restrictions apply to iframes as well.
Tests that restrictions apply to iframes as well .