You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/04/18 23:49:52 UTC
[13/37] spec commit: converted some more tests to jasmine
converted some more tests to jasmine
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/978151fa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/978151fa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/978151fa
Branch: refs/heads/master
Commit: 978151fab2e3d7b1cbd01719c14d47cb19a3f991
Parents: b4b0f93
Author: Gord Tanner <gt...@gmail.com>
Authored: Wed Apr 4 15:40:19 2012 -0400
Committer: Fil Maj <ma...@gmail.com>
Committed: Mon Apr 16 16:06:50 2012 -0700
----------------------------------------------------------------------
autotest/pages/accelerometer.html | 3 +++
autotest/pages/capture.html | 3 +++
autotest/pages/compass.html | 13 +++++++++++++
autotest/pages/contacts.html | 13 +++++++++++++
autotest/pages/device.html | 13 +++++++++++++
autotest/tests/compass.tests.js | 26 ++++++++++++++++++++++++++
6 files changed, 71 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/978151fa/autotest/pages/accelerometer.html
----------------------------------------------------------------------
diff --git a/autotest/pages/accelerometer.html b/autotest/pages/accelerometer.html
index 1a5ad05..00f85d7 100644
--- a/autotest/pages/accelerometer.html
+++ b/autotest/pages/accelerometer.html
@@ -154,6 +154,7 @@
</body>
>>>>>>> converted accel tests
</html>
+<<<<<<< HEAD
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
<script type="text/javascript">
@@ -183,3 +184,5 @@
=======
>>>>>>> converted accel tests
+=======
+>>>>>>> converted some more tests to jasmine
http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/978151fa/autotest/pages/capture.html
----------------------------------------------------------------------
diff --git a/autotest/pages/capture.html b/autotest/pages/capture.html
index de32511..1e37595 100644
--- a/autotest/pages/capture.html
+++ b/autotest/pages/capture.html
@@ -154,6 +154,7 @@
</body>
>>>>>>> converted capture tests
</html>
+<<<<<<< HEAD
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
<script type="text/javascript">
@@ -179,3 +180,5 @@
</body>
>>>>>>> converted capture tests
</html>
+=======
+>>>>>>> converted some more tests to jasmine
http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/978151fa/autotest/pages/compass.html
----------------------------------------------------------------------
diff --git a/autotest/pages/compass.html b/autotest/pages/compass.html
index 1305d6b..9a23f40 100644
--- a/autotest/pages/compass.html
+++ b/autotest/pages/compass.html
@@ -2,6 +2,7 @@
<html>
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=1.0;" />
@@ -54,6 +55,10 @@
=======
=======
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
+=======
+=======
+>>>>>>> converted some more tests to jasmine
+>>>>>>> converted some more tests to jasmine
<head>
<title>Cordova: Compass API Specs</title>
@@ -76,9 +81,12 @@
<!-- Tests -->
<script type="text/javascript" src="../tests/compass.tests.js"></script>
<<<<<<< HEAD
+<<<<<<< HEAD
>>>>>>> converted some more tests to jasmine
=======
=======
+>>>>>>> converted some more tests to jasmine
+=======
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=1.0;" />
@@ -129,7 +137,12 @@
</body>
</html>
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
+<<<<<<< HEAD
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
+=======
+=======
+>>>>>>> converted some more tests to jasmine
+>>>>>>> converted some more tests to jasmine
<script type="text/javascript">
document.addEventListener('deviceready', function () {
http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/978151fa/autotest/pages/contacts.html
----------------------------------------------------------------------
diff --git a/autotest/pages/contacts.html b/autotest/pages/contacts.html
index 967bc0e..4dae647 100644
--- a/autotest/pages/contacts.html
+++ b/autotest/pages/contacts.html
@@ -2,6 +2,7 @@
<html>
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=1.0;" />
@@ -54,6 +55,10 @@
=======
=======
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
+=======
+=======
+>>>>>>> converted some more tests to jasmine
+>>>>>>> converted some more tests to jasmine
<head>
<title>Cordova: Contacts API Specs</title>
@@ -76,9 +81,12 @@
<!-- Tests -->
<script type="text/javascript" src="../tests/contacts.tests.js"></script>
<<<<<<< HEAD
+<<<<<<< HEAD
>>>>>>> converted some more tests to jasmine
=======
=======
+>>>>>>> converted some more tests to jasmine
+=======
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=1.0;" />
@@ -129,7 +137,12 @@
</body>
</html>
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
+<<<<<<< HEAD
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
+=======
+=======
+>>>>>>> converted some more tests to jasmine
+>>>>>>> converted some more tests to jasmine
<script type="text/javascript">
document.addEventListener('deviceready', function () {
http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/978151fa/autotest/pages/device.html
----------------------------------------------------------------------
diff --git a/autotest/pages/device.html b/autotest/pages/device.html
index 1e8c23f..5af6785 100644
--- a/autotest/pages/device.html
+++ b/autotest/pages/device.html
@@ -2,6 +2,7 @@
<html>
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=1.0;" />
@@ -54,6 +55,10 @@
=======
=======
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
+=======
+=======
+>>>>>>> converted some more tests to jasmine
+>>>>>>> converted some more tests to jasmine
<head>
<title>Cordova: Device API Specs</title>
@@ -76,9 +81,12 @@
<!-- Tests -->
<script type="text/javascript" src="../tests/device.tests.js"></script>
<<<<<<< HEAD
+<<<<<<< HEAD
>>>>>>> converted some more tests to jasmine
=======
=======
+>>>>>>> converted some more tests to jasmine
+=======
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=1.0;" />
@@ -129,7 +137,12 @@
</body>
</html>
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
+<<<<<<< HEAD
>>>>>>> fixed html errors, and various html tweaks, doctype, javascript:
+=======
+=======
+>>>>>>> converted some more tests to jasmine
+>>>>>>> converted some more tests to jasmine
<script type="text/javascript">
document.addEventListener('deviceready', function () {
http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/978151fa/autotest/tests/compass.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/compass.tests.js b/autotest/tests/compass.tests.js
index 9e0c5a5..a523a66 100644
--- a/autotest/tests/compass.tests.js
+++ b/autotest/tests/compass.tests.js
@@ -9,6 +9,7 @@ describe('Compass (navigator.compass)', function () {
});
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
test("getCurrentHeading success callback should be called with a Heading object", function() {
expect(9);
QUnit.stop(Tests.TEST_TIMEOUT);
@@ -29,6 +30,10 @@ describe('Compass (navigator.compass)', function () {
=======
=======
>>>>>>> Fixes CB-439 Compass timestamp specified in milliseconds
+=======
+=======
+>>>>>>> converted some more tests to jasmine
+>>>>>>> converted some more tests to jasmine
it("getCurrentHeading success callback should be called with a Heading object", function() {
var win = jasmine.createSpy().andCallFake(function(a) {
@@ -53,9 +58,12 @@ describe('Compass (navigator.compass)', function () {
expect(fail).not.toHaveBeenCalled();
});
<<<<<<< HEAD
+<<<<<<< HEAD
>>>>>>> converted some more tests to jasmine
=======
=======
+>>>>>>> converted some more tests to jasmine
+=======
test("getCurrentHeading success callback should be called with a Heading object", function() {
expect(9);
QUnit.stop(Tests.TEST_TIMEOUT);
@@ -74,7 +82,12 @@ describe('Compass (navigator.compass)', function () {
var fail = function() { QUnit.start(); };
navigator.compass.getCurrentHeading(win, fail);
>>>>>>> Fixes CB-439 Compass timestamp specified in milliseconds
+<<<<<<< HEAD
>>>>>>> Fixes CB-439 Compass timestamp specified in milliseconds
+=======
+=======
+>>>>>>> converted some more tests to jasmine
+>>>>>>> converted some more tests to jasmine
});
it("should contain a watchHeading function", function() {
@@ -110,6 +123,7 @@ describe('Compass (navigator.compass)', function () {
<<<<<<< HEAD
<<<<<<< HEAD
+<<<<<<< HEAD
module('Compass Heading model (CompassHeading)');
test("CompassHeading function should exist", function() {
expect(1);
@@ -137,6 +151,10 @@ describe('Compass (navigator.compass)', function () {
=======
=======
>>>>>>> Fixes CB-439 Compass timestamp specified in milliseconds
+=======
+=======
+>>>>>>> converted some more tests to jasmine
+>>>>>>> converted some more tests to jasmine
it("Creating a new CompassHeading instance with parameters", function() {
var h = new CompassHeading(1,2,3,4);
expect(h.magneticHeading).toBe(1);
@@ -148,9 +166,12 @@ describe('Compass (navigator.compass)', function () {
});
});
<<<<<<< HEAD
+<<<<<<< HEAD
>>>>>>> converted some more tests to jasmine
=======
=======
+>>>>>>> converted some more tests to jasmine
+=======
module('Compass Heading model (CompassHeading)');
test("CompassHeading function should exist", function() {
expect(1);
@@ -176,4 +197,9 @@ describe('Compass (navigator.compass)', function () {
});
};
>>>>>>> Fixes CB-439 Compass timestamp specified in milliseconds
+<<<<<<< HEAD
>>>>>>> Fixes CB-439 Compass timestamp specified in milliseconds
+=======
+=======
+>>>>>>> converted some more tests to jasmine
+>>>>>>> converted some more tests to jasmine