From e11235db84977f26ba005541a0d5982f9af3bb76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez?= Date: Tue, 8 Jul 2014 19:57:44 +0200 Subject: [PATCH] Bug 1022181 - Mobile ID Tests. Part 1: DOM Tests. r=sicking --- dom/mobileid/moz.build | 2 + dom/mobileid/test/mochitest.ini | 5 ++ dom/mobileid/test/moz.build | 7 ++ dom/mobileid/test/test_mobileid_basics.html | 78 +++++++++++++++++++ .../test/test_mobileid_no_permission.html | 24 ++++++ 5 files changed, 116 insertions(+) create mode 100644 dom/mobileid/test/mochitest.ini create mode 100644 dom/mobileid/test/moz.build create mode 100644 dom/mobileid/test/test_mobileid_basics.html create mode 100644 dom/mobileid/test/test_mobileid_no_permission.html diff --git a/dom/mobileid/moz.build b/dom/mobileid/moz.build index 0f03209577a..79d04afb85b 100644 --- a/dom/mobileid/moz.build +++ b/dom/mobileid/moz.build @@ -5,3 +5,5 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. PARALLEL_DIRS += ['interfaces', 'src'] + +TEST_DIRS += ['test'] diff --git a/dom/mobileid/test/mochitest.ini b/dom/mobileid/test/mochitest.ini new file mode 100644 index 00000000000..97494c37e65 --- /dev/null +++ b/dom/mobileid/test/mochitest.ini @@ -0,0 +1,5 @@ +[DEFAULT] +skip-if = (buildapp != 'b2g') + +[test_mobileid_basics.html] +[test_mobileid_no_permission.html] diff --git a/dom/mobileid/test/moz.build b/dom/mobileid/test/moz.build new file mode 100644 index 00000000000..8421b15157a --- /dev/null +++ b/dom/mobileid/test/moz.build @@ -0,0 +1,7 @@ +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- +# vim: set filetype=python: +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +MOCHITEST_MANIFESTS += ['mochitest.ini'] diff --git a/dom/mobileid/test/test_mobileid_basics.html b/dom/mobileid/test/test_mobileid_basics.html new file mode 100644 index 00000000000..2b70bdea801 --- /dev/null +++ b/dom/mobileid/test/test_mobileid_basics.html @@ -0,0 +1,78 @@ + + + + Test for navigator.getMobileIdAssertion + + + + +

+ +
+
+
+ + diff --git a/dom/mobileid/test/test_mobileid_no_permission.html b/dom/mobileid/test/test_mobileid_no_permission.html new file mode 100644 index 00000000000..7a44e5aa487 --- /dev/null +++ b/dom/mobileid/test/test_mobileid_no_permission.html @@ -0,0 +1,24 @@ + + + + Test for navigator.getMobileIdAssertion - No permission + + + + +

+ +
+
+
+ +