You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/01/29 19:56:56 UTC

spec commit: CB-5899: Add test for DirectoryReader.readEntries() to return proper Entries

Updated Branches:
  refs/heads/master 4cef6e7ae -> 17da0d7d8


CB-5899: Add test for DirectoryReader.readEntries() to return proper Entries


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/17da0d7d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/17da0d7d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/17da0d7d

Branch: refs/heads/master
Commit: 17da0d7d8a5457167939eacfbc004fd4780afdde
Parents: 4cef6e7
Author: Ian Clelland <ic...@chromium.org>
Authored: Wed Jan 29 13:54:43 2014 -0500
Committer: Ian Clelland <ic...@chromium.org>
Committed: Wed Jan 29 13:56:07 2014 -0500

----------------------------------------------------------------------
 autotest/tests/file.tests.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/17da0d7d/autotest/tests/file.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/file.tests.js b/autotest/tests/file.tests.js
index 0519588..5b4c85f 100644
--- a/autotest/tests/file.tests.js
+++ b/autotest/tests/file.tests.js
@@ -1054,6 +1054,9 @@ describe('File API', function() {
                             expect(entries instanceof Array).toBe(true);
                             expect(entries.length).toBe(1);
                             expect(entries[0].fullPath).toCanonicallyMatch(fileEntry.fullPath);
+                            expect(entries[0].filesystem).not.toBe(null)
+                            expect(entries[0].filesystem instanceof FileSystem).toBe(true)
+
                             // cleanup
                             directory.removeRecursively(done, fail);
                         }, fail);