cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [05/16] cordova-plugin-screen-orientation git commit: basic tests added
Date Tue, 13 Dec 2016 23:48:33 GMT
 basic tests added


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/commit/f881c95e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/tree/f881c95e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/diff/f881c95e

Branch: refs/heads/master
Commit: f881c95e9a580d9bccf7ee531291afb0b1b4cac9
Parents: c00a7c4
Author: maverickmishra <vishalmishra0907@gmail.com>
Authored: Tue Aug 30 17:12:46 2016 -0700
Committer: maverickmishra <vishalmishra0907@gmail.com>
Committed: Tue Aug 30 17:12:46 2016 -0700

----------------------------------------------------------------------
 tests/plugin.xml | 31 +++++++++++++++++++++++++++++++
 tests/tests.js   | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/f881c95e/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
new file mode 100644
index 0000000..5d01bad
--- /dev/null
+++ b/tests/plugin.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
+    xmlns:rim="http://www.blackberry.com/ns/widgets"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    id="cordova-plugin-device-tests"
+    version="1.0.0-dev">
+    <name>Cordova Screen Orientation Plugin Tests</name>
+    <license>Apache 2.0</license>
+
+    <js-module src="tests.js" name="tests">
+    </js-module>
+</plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-screen-orientation/blob/f881c95e/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
new file mode 100644
index 0000000..7a28ff5
--- /dev/null
+++ b/tests/tests.js
@@ -0,0 +1,36 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+/* jshint jasmine: true */
+
+exports.defineAutoTests = function() {
+  describe('Orientation Information (window.orientation)', function () {
+    it("should exist", function() {
+      expect(window.orientation).toBeDefined();
+    });
+
+    it("should contain a platform specification that is a string", function() {
+      expect(window.orientation).toBeDefined();
+      expect((String(window.orientation.type)).length > 0).toBe(true);
+    });
+
+  });
+};


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message