function testLoadAPIAfterInvalidCall(extensionId) {
  var invalidExtensionId = 'fakeExtension';
  var extensionview = document.querySelector('extensionview');
  extensionview.load(extensionScheme + invalidExtensionId + '/' + srcOne)
      .then(
          embedder.test.fail,
          function() {
            return extensionview.load(
                extensionScheme + extensionId + '/' + srcTwo);
          })
      .then(embedder.test.succeed, embedder.test.fail);
}
// Call load with a valid extension Id and src after an invalid call.
Call load with a valid extension Id and src after an invalid call.
Call load with a valid extension Id and src after an invalid call .
function testLoadAPIAfterInvalidCall(extensionId) {
  var invalidExtensionId = 'fakeExtension';
  var extensionview = document.querySelector('extensionview');
  extensionview.load(extensionScheme + invalidExtensionId + '/' + srcOne)
      .then(
          embedder.test.fail,
          function() {
            return extensionview.load(
                extensionScheme + extensionId + '/' + srcTwo);
          })
      .then(embedder.test.succeed, embedder.test.fail);
}
function testLoadAPIAfterInvalidCall ( extensionId ) { var invalidExtensionId = 'fakeExtension' ; var extensionview = document . querySelector ( 'extensionview' ) ; extensionview . load ( extensionScheme + invalidExtensionId + '/' + srcOne ) . then ( embedder . test . fail , function ( ) { return extensionview . load ( extensionScheme + extensionId + '/' + srcTwo ) ; } ) . then ( embedder . test . succeed , embedder . test . fail ) ; }
Call load with a valid extension Id and src after an invalid call.
Call load with a valid extension Id and src after an invalid call .