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/components/satchel/test/test_popup_direction.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/components/satchel/test/test_popup_direction.html')
-rw-r--r-- | toolkit/components/satchel/test/test_popup_direction.html | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/toolkit/components/satchel/test/test_popup_direction.html b/toolkit/components/satchel/test/test_popup_direction.html deleted file mode 100644 index 02e044bbd..000000000 --- a/toolkit/components/satchel/test/test_popup_direction.html +++ /dev/null @@ -1,61 +0,0 @@ -<!DOCTYPE HTML> -<html> -<head> - <title>Test for Popup Direction</title> - <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> - <script type="text/javascript" src="/tests/SimpleTest/SpawnTask.js"></script> - <script type="text/javascript" src="satchel_common.js"></script> - <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> -</head> -<body> -Test for Popup Direction -<p id="display"></p> - -<!-- we presumably can't hide the content for this test. --> -<div id="content"> - <!-- normal, basic form --> - <form id="form1" onsubmit="return false;"> - <input type="text" name="field1"> - <button type="submit">Submit</button> - </form> -</div> - -<pre id="test"> -<script class="testbody" type="text/javascript"> - -var resolvePopupShownListener; -registerPopupShownListener(() => resolvePopupShownListener()); - -function waitForNextPopup() { - return new Promise(resolve => { resolvePopupShownListener = resolve; }); -} - -add_task(function* test_popup_direction() { - var input = $_(1, "field1"); - - yield new Promise(resolve => updateFormHistory([ - { op : "remove" }, - { op : "add", fieldname : "field1", value : "value1" }, - { op : "add", fieldname : "field1", value : "value2" }, - ], resolve)); - - for (let direction of ["ltr", "rtl"]) { - document.getElementById("content").style.direction = direction; - - let popupShown = waitForNextPopup(); - input.focus(); - doKey("down"); - yield popupShown; - - let popupState = yield new Promise(resolve => getPopupState(resolve)); - is(popupState.direction, direction, "Direction should match."); - - // Close the popup. - input.blur(); - } -}); - -</script> -</pre> -</body> -</html> |