function testLoadAPILoadOtherExtension(extensionIdOne, extensionIdTwo) {
  var extensionview = document.querySelector('extensionview');
  extensionview.load(extensionScheme + extensionIdOne + '/' + srcOne)
      .then(function() {
        return extensionview.load(
            extensionScheme + extensionIdTwo + '/' + srcTwo);
      })
      .then(function() {
        checkExtensionAttribute(extensionview, extensionIdTwo);
        checkSrcAttribute(
            extensionview, extensionScheme + extensionIdTwo + '/' + srcTwo);
        // Try another load of the first extension again to make sure the
        // previous load managed to complete without stalling the action queue.
        return extensionview.load(
            extensionScheme + extensionIdOne + '/' + srcOne);
      })
      .then(function() {
        checkExtensionAttribute(extensionview, extensionIdOne);
        checkSrcAttribute(
            extensionview, extensionScheme + extensionIdOne + '/' + srcOne);
      })
      .then(embedder.test.succeed, embedder.test.fail);
}
// Call load with a new extension Id and src.
Call load with a new extension Id and src.
Call load with a new extension Id and src .
function testLoadAPILoadOtherExtension(extensionIdOne, extensionIdTwo) {
  var extensionview = document.querySelector('extensionview');
  extensionview.load(extensionScheme + extensionIdOne + '/' + srcOne)
      .then(function() {
        return extensionview.load(
            extensionScheme + extensionIdTwo + '/' + srcTwo);
      })
      .then(function() {
        checkExtensionAttribute(extensionview, extensionIdTwo);
        checkSrcAttribute(
            extensionview, extensionScheme + extensionIdTwo + '/' + srcTwo);
        return extensionview.load(
            extensionScheme + extensionIdOne + '/' + srcOne);
      })
      .then(function() {
        checkExtensionAttribute(extensionview, extensionIdOne);
        checkSrcAttribute(
            extensionview, extensionScheme + extensionIdOne + '/' + srcOne);
      })
      .then(embedder.test.succeed, embedder.test.fail);
}
function testLoadAPILoadOtherExtension ( extensionIdOne , extensionIdTwo ) { var extensionview = document . querySelector ( 'extensionview' ) ; extensionview . load ( extensionScheme + extensionIdOne + '/' + srcOne ) . then ( function ( ) { return extensionview . load ( extensionScheme + extensionIdTwo + '/' + srcTwo ) ; } ) . then ( function ( ) { checkExtensionAttribute ( extensionview , extensionIdTwo ) ; checkSrcAttribute ( extensionview , extensionScheme + extensionIdTwo + '/' + srcTwo ) ; return extensionview . load ( extensionScheme + extensionIdOne + '/' + srcOne ) ; } ) . then ( function ( ) { checkExtensionAttribute ( extensionview , extensionIdOne ) ; checkSrcAttribute ( extensionview , extensionScheme + extensionIdOne + '/' + srcOne ) ; } ) . then ( embedder . test . succeed , embedder . test . fail ) ; }
Call load with a new extension Id and src.
Call load with a new extension Id and src .
// Try another load of the first extension again to make sure the // previous load managed to complete without stalling the action queue.