Index: chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js |
diff --git a/chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js b/chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js |
index 28401a7d73a6081425b811ff972aeda5b77669e6..78d67e45369108124a9b97e6703f0f0af2e5e1de 100644 |
--- a/chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js |
+++ b/chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js |
@@ -145,10 +145,9 @@ function onReadFileRequested(options, onSuccess, onError) { |
if (filePath == '/' + TESTING_6GB_FILE.name) { |
if (options.offset < TESTING_TEXT_OFFSET || |
- options.offset + options.length > |
- TESTING_TEXT_OFFSET + TESTING_TEXT.length) { |
+ options.offset >= TESTING_TEXT_OFFSET + TESTING_TEXT.length) { |
console.error('Reading from a wrong location in the file!'); |
- onError('INVALID_FAILED'); // enum ProviderError. |
+ onError('FAILED'); // enum ProviderError. |
return; |
} |