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/mochitest | |
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/mochitest')
-rw-r--r-- | toolkit/modules/tests/mochitest/.eslintrc.js | 7 | ||||
-rw-r--r-- | toolkit/modules/tests/mochitest/mochitest.ini | 3 | ||||
-rw-r--r-- | toolkit/modules/tests/mochitest/test_spatial_navigation.html | 76 |
3 files changed, 0 insertions, 86 deletions
diff --git a/toolkit/modules/tests/mochitest/.eslintrc.js b/toolkit/modules/tests/mochitest/.eslintrc.js deleted file mode 100644 index 3c788d6d6..000000000 --- a/toolkit/modules/tests/mochitest/.eslintrc.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = { - "extends": [ - "../../../../testing/mochitest/mochitest.eslintrc.js" - ] -}; diff --git a/toolkit/modules/tests/mochitest/mochitest.ini b/toolkit/modules/tests/mochitest/mochitest.ini deleted file mode 100644 index 852d95539..000000000 --- a/toolkit/modules/tests/mochitest/mochitest.ini +++ /dev/null @@ -1,3 +0,0 @@ -[DEFAULT] - -[test_spatial_navigation.html] diff --git a/toolkit/modules/tests/mochitest/test_spatial_navigation.html b/toolkit/modules/tests/mochitest/test_spatial_navigation.html deleted file mode 100644 index c1fbb0eec..000000000 --- a/toolkit/modules/tests/mochitest/test_spatial_navigation.html +++ /dev/null @@ -1,76 +0,0 @@ -<!DOCTYPE HTML> -<html> -<!-- -https://bugzilla.mozilla.org/show_bug.cgi?id=698437 ---> -<head> - <meta charset="utf-8"> - <title>Test for Bug 698437</title> - <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> - <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script> - <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> - <script type="application/javascript"> - - /** Test for Bug 698437 **/ - - SimpleTest.waitForExplicitFinish(); - - function Test() { - if (!SpecialPowers.getBoolPref("snav.enabled")) { - todo(false, "Enable spatial navigiation on this platform."); - SimpleTest.finish(); - return; - } - - var center = document.getElementById("center"); - var right = document.getElementById("right"); - var left = document.getElementById("left"); - var top = document.getElementById("top"); - var bottom = document.getElementById("bottom"); - - console.log(top); - console.log(bottom); - console.log(center); - console.log(left); - console.log(right); - - center.focus(); - is(center.id, document.activeElement.id, "How did we call focus on center and it did" + - " not become the active element?"); - - synthesizeKey("VK_UP", { }); - is(document.activeElement.id, top.id, - "Spatial navigation up key is not handled correctly."); - - center.focus(); - synthesizeKey("VK_DOWN", { }); - is(document.activeElement.id, bottom.id, - "Spatial navigation down key is not handled correctly."); - - center.focus(); - synthesizeKey("VK_RIGHT", { }); - is(document.activeElement.id, right.id, - "Spatial navigation right key is not handled correctly."); - - center.focus(); - synthesizeKey("VK_LEFT", { }); - is(document.activeElement.id, left.id, - "Spatial navigation left key is not handled correctly."); - - SimpleTest.finish(); - } - - </script> -</head> -<body onload="Test();"> -<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=698437">Mozilla Bug 698437</a> -<p id="display"></p> -<div id="content"> - <button id="lefttop">1</button><button id="top">2</button><button id="righttop">3</button><br> - <button id="left">4</button><button id="center">5</button><button id="right">6</button><br> - <button id="leftbottom">7</button><button id="bottom">8</button><button id="rightbottom">9</button><br> -</div> -<pre id="test"> -</pre> -</body> -</html> |