function redirectsFail() {
    var url = parseUrl(viewer.originalUrl_);
    var redirectUrl = url.origin + '/server-redirect?' + viewer.originalUrl_;
    createPluginForUrl(redirectUrl, redirectUrl, '', function(progress) {
      if (progress == -1)
        chrome.test.succeed();
      else
        chrome.test.fail();
    });
  }
// Test that if the plugin is loaded with a URL that redirects it fails.
Test that if the plugin is loaded with a URL that redirects it fails.
Test that if the plugin is loaded with a URL that redirects it fails .
function redirectsFail() {
    var url = parseUrl(viewer.originalUrl_);
    var redirectUrl = url.origin + '/server-redirect?' + viewer.originalUrl_;
    createPluginForUrl(redirectUrl, redirectUrl, '', function(progress) {
      if (progress == -1)
        chrome.test.succeed();
      else
        chrome.test.fail();
    });
  }
function redirectsFail ( ) { var url = parseUrl ( viewer . originalUrl_ ) ; var redirectUrl = url . origin + '/server-redirect?' + viewer . originalUrl_ ; createPluginForUrl ( redirectUrl , redirectUrl , '' , function ( progress ) { if ( progress == - 1 ) chrome . test . succeed ( ) ; else chrome . test . fail ( ) ; } ) ; }
Test that if the plugin is loaded with a URL that redirects it fails.
Test that if the plugin is loaded with a URL that redirects it fails .