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

Unified Diff: LayoutTests/fast/filesystem/resources/op-tests-helper.js

Issue 22436002: Replace EntryArray type by an Entry[] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: kill DispatchCallbackTaskBase base class Created 7 years, 4 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: LayoutTests/fast/filesystem/resources/op-tests-helper.js
diff --git a/LayoutTests/fast/filesystem/resources/op-tests-helper.js b/LayoutTests/fast/filesystem/resources/op-tests-helper.js
index 42e9ef5aea3768ca1118ab8eba4120fc3dd905b7..5eb0e579723609b7951bc677567b708ebc722dd9 100644
--- a/LayoutTests/fast/filesystem/resources/op-tests-helper.js
+++ b/LayoutTests/fast/filesystem/resources/op-tests-helper.js
@@ -207,8 +207,7 @@ function runOperationTest(fileSystem, testCase, successCallback, errorCallback)
if (this.expectedErrorCode)
testFailed('Unexpectedly succeeded while ' + this.stage);
- for (var i = 0; i < entries.length; ++i)
- this.readEntries.push(entries[i]);
+ this.readEntries = this.readEntries.concat(entries);
arv (Not doing code reviews) 2013/08/07 14:24:43 concat is evil. How about: this.readEntries.push.
apavlov 2013/08/07 14:29:28 On a related note, we on the DevTools team have se
do-not-use 2013/08/07 18:12:29 Honestly, as a non-javascript person, it is really
if (entries.length) {
this.currentReader.readEntries(bindCallback(this, this.testReadEntriesSuccessCallback), bindCallback(this, this.testErrorCallback));

Powered by Google App Engine
This is Rietveld 408576698