function tabUpdate() {
      var newUrl = "about:blank";

      // Prepare the event listeners first.
      var done = chrome.test.listenForever(chrome.tabs.onUpdated,
        function(id, info, tab) {
          if (id == incognitoTab.id) {
            assertTrue(tab.incognito);
            assertEq(newUrl, tab.url);
            if (info.status == "complete")
              done();
          }
        });

      // Update our tabs.
      chrome.tabs.update(incognitoTab.id, {"url": newUrl}, pass());
    }
// Tests that we can update an incognito tab and get the event for it.
Tests that we can update an incognito tab and get the event for it.
Tests that we can update an incognito tab and get the event for it .
function tabUpdate() {
      var newUrl = "about:blank";
      var done = chrome.test.listenForever(chrome.tabs.onUpdated,
        function(id, info, tab) {
          if (id == incognitoTab.id) {
            assertTrue(tab.incognito);
            assertEq(newUrl, tab.url);
            if (info.status == "complete")
              done();
          }
        });
      chrome.tabs.update(incognitoTab.id, {"url": newUrl}, pass());
    }
function tabUpdate ( ) { var newUrl = "about:blank" ; var done = chrome . test . listenForever ( chrome . tabs . onUpdated , function ( id , info , tab ) { if ( id == incognitoTab . id ) { assertTrue ( tab . incognito ) ; assertEq ( newUrl , tab . url ) ; if ( info . status == "complete" ) done ( ) ; } } ) ; chrome . tabs . update ( incognitoTab . id , { "url" : newUrl } , pass ( ) ) ; }
Tests that we can update an incognito tab and get the event for it.
Tests that we can update an incognito tab and get the event for it .
// Prepare the event listeners first. // Update our tabs.