function expectCompletionEvents() {
  // These events are expected to occur. If that does not happen, check whether
  // fakedevtools.html was actually loaded via the chrome-devtools:-URL.
  expect(
      [
        {
          label: 'onBeforeRequest',
          event: 'onBeforeRequest',
          details: {
            type: 'image',
            url: getURL('does_not_exist.html'),
            frameUrl: 'unknown frame URL',
          },
        },
        {
          label: 'onErrorOccurred',
          event: 'onErrorOccurred',
          details: {
            type: 'image',
            url: getURL('does_not_exist.html'),
            fromCache: false,
            error: 'net::ERR_FILE_NOT_FOUND',
          }
        },
      ],
      [['onBeforeRequest', 'onErrorOccurred']]);
}
// The expected events when fakedevtools.html requests to |getCompletionURL()|.
The expected events when fakedevtools.html requests to |getCompletionURL()|.
The expected events when fakedevtools . html requests to |getCompletionURL () | .
function expectCompletionEvents() {
  expect(
      [
        {
          label: 'onBeforeRequest',
          event: 'onBeforeRequest',
          details: {
            type: 'image',
            url: getURL('does_not_exist.html'),
            frameUrl: 'unknown frame URL',
          },
        },
        {
          label: 'onErrorOccurred',
          event: 'onErrorOccurred',
          details: {
            type: 'image',
            url: getURL('does_not_exist.html'),
            fromCache: false,
            error: 'net::ERR_FILE_NOT_FOUND',
          }
        },
      ],
      [['onBeforeRequest', 'onErrorOccurred']]);
}
function expectCompletionEvents ( ) { expect ( [ { label : 'onBeforeRequest' , event : 'onBeforeRequest' , details : { type : 'image' , url : getURL ( 'does_not_exist.html' ) , frameUrl : 'unknown frame URL' , } , } , { label : 'onErrorOccurred' , event : 'onErrorOccurred' , details : { type : 'image' , url : getURL ( 'does_not_exist.html' ) , fromCache : false , error : 'net::ERR_FILE_NOT_FOUND' , } } , ] , [ [ 'onBeforeRequest' , 'onErrorOccurred' ] ] ) ; }
The expected events when fakedevtools.html requests to |getCompletionURL()|.
The expected events when fakedevtools . html requests to |getCompletionURL () | .
// These events are expected to occur. If that does not happen, check whether // fakedevtools.html was actually loaded via the chrome-devtools:-URL.