function historyBeforeParsing() {
        expect([
          { label: "a-onBeforeNavigate",
            event: "onBeforeNavigate",
            details: { frameId: 0,
                       parentFrameId: -1,
                       processId: -1,
                       tabId: 0,
                       timeStamp: 0,
                       url: getURL('c.html') }},
          { label: "a-onCommitted",
            event: "onCommitted",
            details: { frameId: 0,
                       processId: 0,
                       tabId: 0,
                       timeStamp: 0,
                       transitionQualifiers: [],
                       transitionType: "link",
                       url: getURL('c.html') }},
          { label: "a-onHistoryStateUpdated",
            event: "onHistoryStateUpdated",
            details: { frameId: 0,
                       processId: 0,
                       tabId: 0,
                       timeStamp: 0,
                       transitionQualifiers: [],
                       transitionType: "link",
                       url: getURL('d.html') }},
          { label: "a-onDOMContentLoaded",
            event: "onDOMContentLoaded",
            details: { frameId: 0,
                       processId: 0,
                       tabId: 0,
                       timeStamp: 0,
                       url: getURL('d.html') }},
          { label: "a-onCompleted",
            event: "onCompleted",
            details: { frameId: 0,
                       processId: 0,
                       tabId: 0,
                       timeStamp: 0,
                       url: getURL('d.html') }}],
          [ navigationOrder("a-"),
            [ 'a-onCommitted',
              'a-onHistoryStateUpdated',
              'a-onDOMContentLoaded']]);
        chrome.tabs.update(tabId, { url: getURL('c.html') });
      }
// Manipulating history before parsing completed.
Manipulating history before parsing completed.
Manipulating history before parsing completed .
function historyBeforeParsing() {
        expect([
          { label: "a-onBeforeNavigate",
            event: "onBeforeNavigate",
            details: { frameId: 0,
                       parentFrameId: -1,
                       processId: -1,
                       tabId: 0,
                       timeStamp: 0,
                       url: getURL('c.html') }},
          { label: "a-onCommitted",
            event: "onCommitted",
            details: { frameId: 0,
                       processId: 0,
                       tabId: 0,
                       timeStamp: 0,
                       transitionQualifiers: [],
                       transitionType: "link",
                       url: getURL('c.html') }},
          { label: "a-onHistoryStateUpdated",
            event: "onHistoryStateUpdated",
            details: { frameId: 0,
                       processId: 0,
                       tabId: 0,
                       timeStamp: 0,
                       transitionQualifiers: [],
                       transitionType: "link",
                       url: getURL('d.html') }},
          { label: "a-onDOMContentLoaded",
            event: "onDOMContentLoaded",
            details: { frameId: 0,
                       processId: 0,
                       tabId: 0,
                       timeStamp: 0,
                       url: getURL('d.html') }},
          { label: "a-onCompleted",
            event: "onCompleted",
            details: { frameId: 0,
                       processId: 0,
                       tabId: 0,
                       timeStamp: 0,
                       url: getURL('d.html') }}],
          [ navigationOrder("a-"),
            [ 'a-onCommitted',
              'a-onHistoryStateUpdated',
              'a-onDOMContentLoaded']]);
        chrome.tabs.update(tabId, { url: getURL('c.html') });
      }
function historyBeforeParsing ( ) { expect ( [ { label : "a-onBeforeNavigate" , event : "onBeforeNavigate" , details : { frameId : 0 , parentFrameId : - 1 , processId : - 1 , tabId : 0 , timeStamp : 0 , url : getURL ( 'c.html' ) } } , { label : "a-onCommitted" , event : "onCommitted" , details : { frameId : 0 , processId : 0 , tabId : 0 , timeStamp : 0 , transitionQualifiers : [ ] , transitionType : "link" , url : getURL ( 'c.html' ) } } , { label : "a-onHistoryStateUpdated" , event : "onHistoryStateUpdated" , details : { frameId : 0 , processId : 0 , tabId : 0 , timeStamp : 0 , transitionQualifiers : [ ] , transitionType : "link" , url : getURL ( 'd.html' ) } } , { label : "a-onDOMContentLoaded" , event : "onDOMContentLoaded" , details : { frameId : 0 , processId : 0 , tabId : 0 , timeStamp : 0 , url : getURL ( 'd.html' ) } } , { label : "a-onCompleted" , event : "onCompleted" , details : { frameId : 0 , processId : 0 , tabId : 0 , timeStamp : 0 , url : getURL ( 'd.html' ) } } ] , [ navigationOrder ( "a-" ) , [ 'a-onCommitted' , 'a-onHistoryStateUpdated' , 'a-onDOMContentLoaded' ] ] ) ; chrome . tabs . update ( tabId , { url : getURL ( 'c.html' ) } ) ; }
Manipulating history before parsing completed.
Manipulating history before parsing completed .