function readBigFileSuccess() {
      test_util.fileSystem.root.getFile(
          TESTING_6GB_FILE.name,
          {create: false},
          chrome.test.callbackPass(function(fileEntry) {
            fileEntry.file(chrome.test.callbackPass(function(file) {
              // Read 10 bytes from the 5th GB.
              var fileSlice =
                  file.slice(TESTING_TEXT_OFFSET,
                             TESTING_TEXT_OFFSET + TESTING_TEXT.length);
              var fileReader = new FileReader();
              fileReader.onload = chrome.test.callbackPass(function(e) {
                var text = fileReader.result;
                chrome.test.assertEq(TESTING_TEXT, text);
              });
              fileReader.onerror = function(e) {
                chrome.test.fail(fileReader.error.name);
              };
              fileReader.readAsText(fileSlice);
            }),
            function(error) {
              chrome.test.fail(error.name);
            });
          }),
          function(error) {
            chrome.test.fail(error.name);
          });
    }
// with size greater or equal to 2^53.
with size greater or equal to 2^53.
with size greater or equal to 2^53 .
function readBigFileSuccess() {
      test_util.fileSystem.root.getFile(
          TESTING_6GB_FILE.name,
          {create: false},
          chrome.test.callbackPass(function(fileEntry) {
            fileEntry.file(chrome.test.callbackPass(function(file) {
              var fileSlice =
                  file.slice(TESTING_TEXT_OFFSET,
                             TESTING_TEXT_OFFSET + TESTING_TEXT.length);
              var fileReader = new FileReader();
              fileReader.onload = chrome.test.callbackPass(function(e) {
                var text = fileReader.result;
                chrome.test.assertEq(TESTING_TEXT, text);
              });
              fileReader.onerror = function(e) {
                chrome.test.fail(fileReader.error.name);
              };
              fileReader.readAsText(fileSlice);
            }),
            function(error) {
              chrome.test.fail(error.name);
            });
          }),
          function(error) {
            chrome.test.fail(error.name);
          });
    }
function readBigFileSuccess ( ) { test_util . fileSystem . root . getFile ( TESTING_6GB_FILE . name , { create : false } , chrome . test . callbackPass ( function ( fileEntry ) { fileEntry . file ( chrome . test . callbackPass ( function ( file ) { var fileSlice = file . slice ( TESTING_TEXT_OFFSET , TESTING_TEXT_OFFSET + TESTING_TEXT . length ) ; var fileReader = new FileReader ( ) ; fileReader . onload = chrome . test . callbackPass ( function ( e ) { var text = fileReader . result ; chrome . test . assertEq ( TESTING_TEXT , text ) ; } ) ; fileReader . onerror = function ( e ) { chrome . test . fail ( fileReader . error . name ) ; } ; fileReader . readAsText ( fileSlice ) ; } ) , function ( error ) { chrome . test . fail ( error . name ) ; } ) ; } ) , function ( error ) { chrome . test . fail ( error . name ) ; } ) ; }
with size greater or equal to 2^53.
with size greater or equal to 2^53 .
// Read 10 bytes from the 5th GB.