diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-05-13 22:46:04 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-05-13 22:46:04 +0200 |
commit | 1124fb525bf7b8341170d886b8de070e20323efd (patch) | |
tree | ed5b0ee5976d7e1411c9ed3ac163b32383ba76e4 /dom/speakermanager/tests | |
parent | a6de0846702b2eb21ce2f29ba42bf968fbd4fe2f (diff) | |
download | UXP-1124fb525bf7b8341170d886b8de070e20323efd.tar UXP-1124fb525bf7b8341170d886b8de070e20323efd.tar.gz UXP-1124fb525bf7b8341170d886b8de070e20323efd.tar.lz UXP-1124fb525bf7b8341170d886b8de070e20323efd.tar.xz UXP-1124fb525bf7b8341170d886b8de070e20323efd.zip |
Remove other gonk widget conditionals and unused files.
Tag #288.
Diffstat (limited to 'dom/speakermanager/tests')
-rw-r--r-- | dom/speakermanager/tests/mochitest.ini | 3 | ||||
-rw-r--r-- | dom/speakermanager/tests/test_speakermanager.html | 53 |
2 files changed, 0 insertions, 56 deletions
diff --git a/dom/speakermanager/tests/mochitest.ini b/dom/speakermanager/tests/mochitest.ini deleted file mode 100644 index bb272adc0..000000000 --- a/dom/speakermanager/tests/mochitest.ini +++ /dev/null @@ -1,3 +0,0 @@ -[DEFAULT] - -[test_speakermanager.html] diff --git a/dom/speakermanager/tests/test_speakermanager.html b/dom/speakermanager/tests/test_speakermanager.html deleted file mode 100644 index 509df5e84..000000000 --- a/dom/speakermanager/tests/test_speakermanager.html +++ /dev/null @@ -1,53 +0,0 @@ -<!DOCTYPE HTML> -<html> -<head> - <meta charset="utf-8"> - <title>Test MozSpeakerManager API</title> - <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> - <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> -</head> -<body> -<p id="display"></p> -<div id="content" style="display: none"></div> -<pre id="test"> - <script type="application/javascript"> - - "use strict"; - - function testObject() { - var mgr = new MozSpeakerManager(); - var spkforced = false; - mgr.onspeakerforcedchange = function() { - if (spkforced) { - is(mgr.speakerforced, true, 'speaker should be true'); - spkforced = false; - mgr.forcespeaker = false; - } else { - is(mgr.speakerforced, false, 'speaker should be false'); - SimpleTest.finish(); - } - } - spkforced = true; - mgr.forcespeaker = true; - } - - function startTests() { - // Currently applicable only on FxOS - if (navigator.userAgent.indexOf("Mobile") != -1 && - navigator.appVersion.indexOf("Android") == -1) { - testObject(); - } else { - ok(true, "MozSpeakerManager on Firefox OS only."); - SimpleTest.finish(); - } - } - - SimpleTest.waitForExplicitFinish(); - SpecialPowers.pushPermissions( - [{ "type": "speaker-control", "allow": 1, "context": document }], - startTests); - - </script> -</pre> -</body> -</html> |