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/02/07 16:39:12 UTC
spec commit: CB-5959: Entry.getMetadata should return a size attribute
Updated Branches:
refs/heads/master 00d81a660 -> 7bf74ba1d
CB-5959: Entry.getMetadata should return a size attribute
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/7bf74ba1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/7bf74ba1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/7bf74ba1
Branch: refs/heads/master
Commit: 7bf74ba1d7bbe698a9d3594e7eb2e10cbfc55fb1
Parents: 00d81a6
Author: Ian Clelland <ic...@chromium.org>
Authored: Fri Feb 7 10:33:35 2014 -0500
Committer: Ian Clelland <ic...@chromium.org>
Committed: Fri Feb 7 10:34:00 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/7bf74ba1/autotest/tests/file.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/file.tests.js b/autotest/tests/file.tests.js
index 1dc6ee5..47cb10f 100644
--- a/autotest/tests/file.tests.js
+++ b/autotest/tests/file.tests.js
@@ -1351,6 +1351,7 @@ describe('File API', function() {
itMetadata = jasmine.createSpy().andCallFake(function(metadata) {
expect(metadata).toBeDefined();
expect(metadata.modificationTime instanceof Date).toBe(true);
+ expect(typeof metadata.size).toBe("number");
// cleanup
deleteEntry(fileName);
@@ -1381,6 +1382,8 @@ describe('File API', function() {
itMetadata = jasmine.createSpy().andCallFake(function(metadata) {
expect(metadata).toBeDefined();
expect(metadata.modificationTime instanceof Date).toBe(true);
+ expect(typeof metadata.size).toBe("number");
+ expect(metadata.size).toBe(0);
// cleanup
deleteEntry(dirName);