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

Unified Diff: LayoutTests/fast/filesystem/script-tests/read-directory.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/script-tests/read-directory.js
diff --git a/LayoutTests/fast/filesystem/script-tests/read-directory.js b/LayoutTests/fast/filesystem/script-tests/read-directory.js
index e88ff313977bd79e4ce09dc9425736e360ef5071..313db53888a9cb7d51fd62fd88931228c23d2983 100644
--- a/LayoutTests/fast/filesystem/script-tests/read-directory.js
+++ b/LayoutTests/fast/filesystem/script-tests/read-directory.js
@@ -42,12 +42,13 @@ function verifyTestResult()
}
}
-function entriesCallback(entries)
+var entries;
+function entriesCallback(_entries)
{
entriesCallbackCount++;
-
- for (var i = 0; i < entries.length; ++i)
- resultEntries.push(entries[i]);
+ entries = _entries;
+ shouldBe("entries.__proto__", "Array.prototype");
+ resultEntries.push.apply(resultEntries, entries);
if (entries.length) {
readEntriesCount++;
« no previous file with comments | « LayoutTests/fast/filesystem/resources/op-tests-helper.js ('k') | Source/bindings/scripts/code_generator_v8.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698