Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4501)

Unified Diff: chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js

Issue 334593003: Discussion about File Stream Reader. (Abandoned) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TestCompletionCallback solution. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 aefd000d324e2fb1a5fdc5bf1cf0c10250a95fda..2ac4d1241a17e90dcfe6ff7de83014493338bc99 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
@@ -171,10 +171,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;
}

Powered by Google App Engine
This is Rietveld 408576698