cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject spec commit: [CB-3553] added a check for media status constants
Date Thu, 20 Jun 2013 01:37:21 GMT
Updated Branches:
  refs/heads/master e31b38eb5 -> 95d4bca5b


[CB-3553] added a check for media status constants

- new jasmine test added


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/95d4bca5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/95d4bca5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/95d4bca5

Branch: refs/heads/master
Commit: 95d4bca5b18fd01bd5a6e2e1578284a773df1d9e
Parents: e31b38e
Author: ldeluca <ldeluca@us.ibm.com>
Authored: Thu May 30 12:11:59 2013 -0400
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Wed Jun 19 18:36:46 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/95d4bca5/autotest/tests/media.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/media.tests.js b/autotest/tests/media.tests.js
index 8e484dc..6b23a47 100644
--- a/autotest/tests/media.tests.js
+++ b/autotest/tests/media.tests.js
@@ -33,6 +33,15 @@ describe('Media', function () {
         expect(media1._position).toBeDefined();
         media1.release();
     });
+    
+    it("should define constants for Media status", function() {
+        expect(Media).toBeDefined();
+        expect(Media.MEDIA_NONE).toBe(0);
+        expect(Media.MEDIA_STARTING).toBe(1);
+		expect(Media.MEDIA_RUNNING).toBe(2);
+		expect(Media.MEDIA_PAUSED).toBe(3);
+		expect(Media.MEDIA_STOPPED).toBe(4);
+	});
 
 	it("should define constants for Media errors", function() {
         expect(MediaError).toBeDefined();


Mime
View raw message