function testExecuteScriptInFrame() {
      chrome.tabs.query({
        url: '*://*/*test_file_with_about_blank_iframe*'
      }, function(tabs) {
        chrome.test.assertTrue(tabs.length > 0);
        chrome.tabs.executeScript(tabs[0].id, {
          code: 'frameElement && (frameElement.src || "about:blank")',
          matchAboutBlank: true,
          allFrames: true
        }, function(results) {
          chrome.test.assertNoLastError();
          chrome.test.assertTrue(results.indexOf('about:blank') >= 0);
          chrome.test.succeed();
        });
      });
    }
// chrome.tabs.executeScript should run in the frame
chrome.tabs.executeScript should run in the frame
chrome . tabs . executeScript should run in the frame
function testExecuteScriptInFrame() {
      chrome.tabs.query({
        url: '*://*/*test_file_with_about_blank_iframe*'
      }, function(tabs) {
        chrome.test.assertTrue(tabs.length > 0);
        chrome.tabs.executeScript(tabs[0].id, {
          code: 'frameElement && (frameElement.src || "about:blank")',
          matchAboutBlank: true,
          allFrames: true
        }, function(results) {
          chrome.test.assertNoLastError();
          chrome.test.assertTrue(results.indexOf('about:blank') >= 0);
          chrome.test.succeed();
        });
      });
    }
function testExecuteScriptInFrame ( ) { chrome . tabs . query ( { url : '*://*/*test_file_with_about_blank_iframe*' } , function ( tabs ) { chrome . test . assertTrue ( tabs . length > 0 ) ; chrome . tabs . executeScript ( tabs [ 0 ] . id , { code : 'frameElement && (frameElement.src || "about:blank")' , matchAboutBlank : true , allFrames : true } , function ( results ) { chrome . test . assertNoLastError ( ) ; chrome . test . assertTrue ( results . indexOf ( 'about:blank' ) >= 0 ) ; chrome . test . succeed ( ) ; } ) ; } ) ; }
chrome.tabs.executeScript should run in the frame
chrome . tabs . executeScript should run in the frame