From 1e750d0b2d08d1e865676035ff219dc23d9e5ef7 Mon Sep 17 00:00:00 2001 From: Alexandre Lissy Date: Mon, 28 Dec 2015 17:23:00 +0100 Subject: [PATCH] Bug 1235050 - Add basic SimplePush testing. r=kitcambridge --- dom/simplepush/moz.build | 4 ++ dom/simplepush/test/mochitest.ini | 6 +++ dom/simplepush/test/test_permissions.html | 60 +++++++++++++++++++++ dom/simplepush/test/test_prefs.html | 63 +++++++++++++++++++++++ dom/simplepush/test/test_register.html | 57 ++++++++++++++++++++ 5 files changed, 190 insertions(+) create mode 100644 dom/simplepush/test/mochitest.ini create mode 100644 dom/simplepush/test/test_permissions.html create mode 100644 dom/simplepush/test/test_prefs.html create mode 100644 dom/simplepush/test/test_register.html diff --git a/dom/simplepush/moz.build b/dom/simplepush/moz.build index 0d6805f3a99..96b273fa818 100644 --- a/dom/simplepush/moz.build +++ b/dom/simplepush/moz.build @@ -12,3 +12,7 @@ EXTRA_COMPONENTS += [ EXTRA_JS_MODULES += [ 'PushService.jsm', ] + +MOCHITEST_MANIFESTS += [ + 'test/mochitest.ini', +] diff --git a/dom/simplepush/test/mochitest.ini b/dom/simplepush/test/mochitest.ini new file mode 100644 index 00000000000..ee9b7cb4507 --- /dev/null +++ b/dom/simplepush/test/mochitest.ini @@ -0,0 +1,6 @@ +[DEFAULT] +run-if = toolkit == "gonk" + +[test_permissions.html] +[test_register.html] +[test_prefs.html] diff --git a/dom/simplepush/test/test_permissions.html b/dom/simplepush/test/test_permissions.html new file mode 100644 index 00000000000..f925c2732fc --- /dev/null +++ b/dom/simplepush/test/test_permissions.html @@ -0,0 +1,60 @@ + + + + + Test for Bug 1235050 + + + + +Mozilla Bug 1235050 +

+ +
+
+ + + + diff --git a/dom/simplepush/test/test_prefs.html b/dom/simplepush/test/test_prefs.html new file mode 100644 index 00000000000..0ef9678e305 --- /dev/null +++ b/dom/simplepush/test/test_prefs.html @@ -0,0 +1,63 @@ + + + + + Test for Bug 1235050 + + + + +Mozilla Bug 1235050 +

+ +
+
+ + + + diff --git a/dom/simplepush/test/test_register.html b/dom/simplepush/test/test_register.html new file mode 100644 index 00000000000..989aa9657ed --- /dev/null +++ b/dom/simplepush/test/test_register.html @@ -0,0 +1,57 @@ + + + + + Test for Bug 1235050 + + + + +Mozilla Bug 1235050 +

+ +
+
+ + + +