incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [12/21] git commit: added start of media tests
Date Thu, 15 Mar 2012 19:36:25 GMT
added start of media tests


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/85378cc2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/85378cc2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/85378cc2

Branch: refs/heads/master
Commit: 85378cc27448240f96431d0e622032c4698f4618
Parents: a3ef763
Author: Fil Maj <maj.fil@gmail.com>
Authored: Mon Mar 12 17:51:43 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Thu Mar 15 10:14:41 2012 -0700

----------------------------------------------------------------------
 test/test.media.js |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/85378cc2/test/test.media.js
----------------------------------------------------------------------
diff --git a/test/test.media.js b/test/test.media.js
new file mode 100644
index 0000000..4d21925
--- /dev/null
+++ b/test/test.media.js
@@ -0,0 +1,9 @@
+describe("media", function () {
+    describe("MediaError object + error codes", function () {
+        var MediaError = require('cordova/plugin/MediaError');
+        it("should have no problem instantiating a MediaError object with the zero code",
function () {
+            var err = new MediaError(0);
+            expect(err.code).toBe(0);
+        });
+    });
+});


Mime
View raw message