CB-388: REMOVE plugins and PhoneGap global objects from JavaScript 
implementation


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

Branch: refs/heads/master
Commit: 90dde9687bdbacbb0f02d5fc15a244e1bcea4523
Parents: 0f717bd
Author: macdonst <[email protected]>
Authored: Mon Jul 16 10:44:13 2012 -0400
Committer: macdonst <[email protected]>
Committed: Mon Jul 16 10:44:13 2012 -0400

----------------------------------------------------------------------
 autotest/tests/platform.tests.js |   31 +++----------------------------
 1 files changed, 3 insertions(+), 28 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/90dde968/autotest/tests/platform.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/platform.tests.js b/autotest/tests/platform.tests.js
index cf05356..f44fcb3 100644
--- a/autotest/tests/platform.tests.js
+++ b/autotest/tests/platform.tests.js
@@ -2,34 +2,9 @@ describe('Platform (cordova)', function () {
     it("should exist", function() {
         expect(cordova).toBeDefined();
     });
-    describe('Platform (Cordova)', function () {
-        it("should exist", function() {
-            expect(window.Cordova).toBeDefined();
-        });
-    });
-    describe('Platform (PhoneGap)', function () {
-        it("should exist", function() {
-            expect(PhoneGap).toBeDefined();
-        });
-
-        it("exec method should exist", function() {
-            expect(PhoneGap.exec).toBeDefined();
-            expect(typeof PhoneGap.exec).toBe('function');
-        });
 
-        it("addPlugin method should exist", function() {
-            expect(PhoneGap.addPlugin).toBeDefined();
-            expect(typeof PhoneGap.addPlugin).toBe('function');
-        });
-
-        it("addConstructor method should exist", function() {
-            expect(PhoneGap.addConstructor).toBeDefined();
-            expect(typeof PhoneGap.addConstructor).toBe('function');
-        });
-    });
-    describe('Platform (window.plugins)', function () {
-        it("should exist", function() {
-            expect(window.plugins).toBeDefined();
-        });
+    it("exec method should exist", function() {
+        expect(cordova.exec).toBeDefined();
+        expect(typeof cordova.exec).toBe('function');
     });
 });

Reply via email to