diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-25 15:07:00 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:55:19 +0200 |
commit | eb70e6e3d0bff11c25f14b1196025791bf2308fb (patch) | |
tree | 5ef4ce17db83c74d7b05ec12c8f59e095a6dd5bd /toolkit/modules/tests/browser/testremotepagemanager.html | |
parent | 32ead795290b3399d56b4708fc75b77d296f6a1a (diff) | |
download | UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar.gz UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar.lz UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar.xz UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.zip |
Issue #439 - Remove tests from toolkit/
Diffstat (limited to 'toolkit/modules/tests/browser/testremotepagemanager.html')
-rw-r--r-- | toolkit/modules/tests/browser/testremotepagemanager.html | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/toolkit/modules/tests/browser/testremotepagemanager.html b/toolkit/modules/tests/browser/testremotepagemanager.html deleted file mode 100644 index 4303a38f5..000000000 --- a/toolkit/modules/tests/browser/testremotepagemanager.html +++ /dev/null @@ -1,66 +0,0 @@ -<!DOCTYPE HTML> - -<html> -<head> -<script type="text/javascript"> -addMessageListener("Ping", function(message) { - sendAsyncMessage("Pong", { - str: message.data.str, - counter: message.data.counter + 1 - }); -}); - -addMessageListener("Ping2", function(message) { - sendAsyncMessage("Pong2", message.data); -}); - -function neverCalled() { - sendAsyncMessage("Pong3"); -} -addMessageListener("Pong3", neverCalled); -removeMessageListener("Pong3", neverCalled); - -function testData(data) { - var response = { - result: true, - status: "All data correctly received" - } - - function compare(prop, expected) { - if (uneval(data[prop]) == uneval(expected)) - return; - if (response.result) - response.status = ""; - response.result = false; - response.status += "Property " + prop + " should have been " + expected + " but was " + data[prop] + "\n"; - } - - compare("integer", 45); - compare("real", 45.78); - compare("str", "foobar"); - compare("array", [1, 2, 3, 5, 27]); - - return response; -} - -addMessageListener("SendData", function(message) { - sendAsyncMessage("ReceivedData", testData(message.data)); -}); - -addMessageListener("SendData2", function(message) { - sendAsyncMessage("ReceivedData2", testData(message.data.data)); -}); - -var cookie = "nom"; -addMessageListener("SetCookie", function(message) { - cookie = message.data.value; -}); - -addMessageListener("GetCookie", function(message) { - sendAsyncMessage("Cookie", { value: cookie }); -}); -</script> -</head> -<body> -</body> -</html> |