Chromium Code Reviews| 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..cf9e7f6f16ea01a64cf2ba841cb0722118bc585e 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 = resultEntries.concat(entries); |
|
arv (Not doing code reviews)
2013/08/07 14:24:43
same
|
| if (entries.length) { |
| readEntriesCount++; |