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

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: Rebase on master 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..d408ce62c7f873a16529b47737ce5e36298006ee 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.push.apply(this.readEntries, entries);
if (entries.length) {
this.currentReader.readEntries(bindCallback(this, this.testReadEntriesSuccessCallback), bindCallback(this, this.testErrorCallback));
« no previous file with comments | « LayoutTests/fast/filesystem/read-directory-expected.txt ('k') | LayoutTests/fast/filesystem/script-tests/read-directory.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698