function partialRedirectsFail() {
    var url = parseUrl(viewer.originalUrl_);
    var redirectUrl = url.origin + '/server-redirect?' + viewer.originalUrl_;
    // Set the headers manually so that the first request is made using a URL
    // that doesn't redirect and subsequent requests are made using a URL that
    // does.
    var headers = 'Accept-Ranges: bytes\n' +
                  'Content-Length: 101688487\n' +
                  'Content-Type: application/pdf\n';
    createPluginForUrl(viewer.originalUrl_, redirectUrl, headers,
        function(progress) {
          if (progress == -1)
            chrome.test.succeed();
          else
            chrome.test.fail();
        });
  }
// subsequent requests do redirect, it fails.
subsequent requests do redirect, it fails.
subsequent requests do redirect it fails .
function partialRedirectsFail() {
    var url = parseUrl(viewer.originalUrl_);
    var redirectUrl = url.origin + '/server-redirect?' + viewer.originalUrl_;
    var headers = 'Accept-Ranges: bytes\n' +
                  'Content-Length: 101688487\n' +
                  'Content-Type: application/pdf\n';
    createPluginForUrl(viewer.originalUrl_, redirectUrl, headers,
        function(progress) {
          if (progress == -1)
            chrome.test.succeed();
          else
            chrome.test.fail();
        });
  }
function partialRedirectsFail ( ) { var url = parseUrl ( viewer . originalUrl_ ) ; var redirectUrl = url . origin + '/server-redirect?' + viewer . originalUrl_ ; var headers = 'Accept-Ranges: bytes\n' + 'Content-Length: 101688487\n' + 'Content-Type: application/pdf\n' ; createPluginForUrl ( viewer . originalUrl_ , redirectUrl , headers , function ( progress ) { if ( progress == - 1 ) chrome . test . succeed ( ) ; else chrome . test . fail ( ) ; } ) ; }
subsequent requests do redirect, it fails.
subsequent requests do redirect it fails .
// Set the headers manually so that the first request is made using a URL // that doesn't redirect and subsequent requests are made using a URL that // does.