function nonExistingLoad() {
    expect(
      [  // events
        { label: "onBeforeRequest",
          event: "onBeforeRequest",
          details: {
            url: getURL("does_not_exist.html"),
            frameUrl: getURL("does_not_exist.html"),
            initiator: getDomain(initiators.BROWSER_INITIATED),
          }
        },
        { label: "onErrorOccurred",
          event: "onErrorOccurred",
          details: {
            url: getURL("does_not_exist.html"),
            fromCache: false,
            error: "net::ERR_FILE_NOT_FOUND",
            initiator: getDomain(initiators.BROWSER_INITIATED),
            // Request to chrome-extension:// url has no IP.
          }
        },
      ],
      [  // event order
        ["onBeforeRequest", "onErrorOccurred"] ]);
    navigateAndWait(getURL("does_not_exist.html"));
  }
// Navigates to a non-existing page.
Navigates to a non-existing page.
Navigates to a non - existing page .
function nonExistingLoad() {
    expect(
      [  
        { label: "onBeforeRequest",
          event: "onBeforeRequest",
          details: {
            url: getURL("does_not_exist.html"),
            frameUrl: getURL("does_not_exist.html"),
            initiator: getDomain(initiators.BROWSER_INITIATED),
          }
        },
        { label: "onErrorOccurred",
          event: "onErrorOccurred",
          details: {
            url: getURL("does_not_exist.html"),
            fromCache: false,
            error: "net::ERR_FILE_NOT_FOUND",
            initiator: getDomain(initiators.BROWSER_INITIATED),
          }
        },
      ],
      [  
        ["onBeforeRequest", "onErrorOccurred"] ]);
    navigateAndWait(getURL("does_not_exist.html"));
  }
function nonExistingLoad ( ) { expect ( [ { label : "onBeforeRequest" , event : "onBeforeRequest" , details : { url : getURL ( "does_not_exist.html" ) , frameUrl : getURL ( "does_not_exist.html" ) , initiator : getDomain ( initiators . BROWSER_INITIATED ) , } } , { label : "onErrorOccurred" , event : "onErrorOccurred" , details : { url : getURL ( "does_not_exist.html" ) , fromCache : false , error : "net::ERR_FILE_NOT_FOUND" , initiator : getDomain ( initiators . BROWSER_INITIATED ) , } } , ] , [ [ "onBeforeRequest" , "onErrorOccurred" ] ] ) ; navigateAndWait ( getURL ( "does_not_exist.html" ) ) ; }
Navigates to a non-existing page.
Navigates to a non - existing page .
// events // Request to chrome-extension:// url has no IP. // event order