cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject spec commit: CB-5899: Add test for DirectoryReader.readEntries() to return proper Entries
Date Wed, 29 Jan 2014 18:56:56 GMT
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 <iclelland@chromium.org>
Authored: Wed Jan 29 13:54:43 2014 -0500
Committer: Ian Clelland <iclelland@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);


Mime
View raw message