diff options
Diffstat (limited to 'mobile/android/tests/browser/robocop/roboextender/base')
-rw-r--r-- | mobile/android/tests/browser/robocop/roboextender/base/robocop_home_banner.html | 37 | ||||
-rw-r--r-- | mobile/android/tests/browser/robocop/roboextender/base/robocop_prompt_gridinput.html | 51 |
2 files changed, 0 insertions, 88 deletions
diff --git a/mobile/android/tests/browser/robocop/roboextender/base/robocop_home_banner.html b/mobile/android/tests/browser/robocop/roboextender/base/robocop_home_banner.html deleted file mode 100644 index 9a9456604..000000000 --- a/mobile/android/tests/browser/robocop/roboextender/base/robocop_home_banner.html +++ /dev/null @@ -1,37 +0,0 @@ -<html> - <head> - <title>HomeBanner test page</title> - <meta name="viewport" content="initial-scale=1.0"/> - <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script> - <script type="application/javascript"> -Components.utils.import("resource://gre/modules/Messaging.jsm"); -Components.utils.import("resource://gre/modules/Services.jsm"); -Components.utils.import("resource://gre/modules/Home.jsm"); - -const TEXT = "The quick brown fox jumps over the lazy dog."; - -function start() { - var test = location.hash.substring(1); - window[test](); -} - -var messageId; - -function addMessage() { - messageId = Home.banner.add({ - text: TEXT, - onshown: function() { - Messaging.sendRequest({ type: "TestHomeBanner:MessageShown" }); - }, - ondismiss: function() { - Messaging.sendRequest({ type: "TestHomeBanner:MessageDismissed" }); - } - }); - Messaging.sendRequest({ type: "TestHomeBanner:MessageAdded" }); -} - - </script> - </head> - <body onload="start();"> - </body> -</html> diff --git a/mobile/android/tests/browser/robocop/roboextender/base/robocop_prompt_gridinput.html b/mobile/android/tests/browser/robocop/roboextender/base/robocop_prompt_gridinput.html deleted file mode 100644 index 733683c16..000000000 --- a/mobile/android/tests/browser/robocop/roboextender/base/robocop_prompt_gridinput.html +++ /dev/null @@ -1,51 +0,0 @@ -<html> - <head> - <title>IconGrid test page</title> - <meta name="viewport" content="initial-scale=1.0"/> - <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script> - <script type="application/javascript"> -Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); -Components.utils.import("resource://gre/modules/Services.jsm"); -Components.utils.import("resource://gre/modules/Prompt.jsm"); - -function start() { - var test = location.hash.substring(1); - window[test](); -} - -function test1() { - var p = new Prompt({ - title: "Prompt 1", - buttons: [ - "OK" - ], - }).addIconGrid({ - items: [ - { iconUri: "drawable://alert_camera", name: "Icon 1", selected: true }, - { iconUri: "drawable://alert_download", name: "Icon 2" }, - { iconUri: "drawable://icon", name: "Icon 3" }, - { iconUri: "drawable://icon", name: "Icon 4" }, - { iconUri: "drawable://icon", name: "Icon 5" }, - { iconUri: "drawable://icon", name: "Icon 6" }, - { iconUri: "drawable://icon", name: "Icon 7" }, - { iconUri: "drawable://icon", name: "Icon 8" }, - { iconUri: "drawable://icon", name: "Icon 9" }, - { iconUri: "drawable://icon", name: "Icon 10" }, - { iconUri: "drawable://icon", name: "Icon 11" }, - ] - }); - p.show(function(data) { - sendResult(data.icongrid0 == 10, "Got result " + data.icongrid0); - }); -} - -function sendResult(pass, message) { - setTimeout(function() { - alert((pass ? "PASS " : "FAIL ") + message); - }, 1000); -} - </script> - </head> - <body onload="start();"> - </body> -</html> |