diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-20 11:08:15 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:48:40 +0200 |
commit | ee6595e6deca4bb6d9008fb1495c5da7692a2b33 (patch) | |
tree | 95602885a43f6dc556dd6d27fc2d387275ae4816 /widget/tests/test_plugin_scroll_consistency.html | |
parent | 201be4d8fcd78484ad2132d16fd5c06448a41aca (diff) | |
download | UXP-ee6595e6deca4bb6d9008fb1495c5da7692a2b33.tar UXP-ee6595e6deca4bb6d9008fb1495c5da7692a2b33.tar.gz UXP-ee6595e6deca4bb6d9008fb1495c5da7692a2b33.tar.lz UXP-ee6595e6deca4bb6d9008fb1495c5da7692a2b33.tar.xz UXP-ee6595e6deca4bb6d9008fb1495c5da7692a2b33.zip |
Issue #439 - Remove tests from widget/
Diffstat (limited to 'widget/tests/test_plugin_scroll_consistency.html')
-rw-r--r-- | widget/tests/test_plugin_scroll_consistency.html | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/widget/tests/test_plugin_scroll_consistency.html b/widget/tests/test_plugin_scroll_consistency.html deleted file mode 100644 index 76d97f4ef..000000000 --- a/widget/tests/test_plugin_scroll_consistency.html +++ /dev/null @@ -1,61 +0,0 @@ -<html> -<head> - <title>Test for plugin child widgets not being messed up by scrolling</title> - <script type="text/javascript" - src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> - <script type="text/javascript" src="utils.js"></script> - <link rel="stylesheet" type="text/css" - href="chrome://mochikit/content/tests/SimpleTest/test.css" /> -</head> -<body onload="setTimeout(runTests, 0)"> -<script type="application/javascript"> -setTestPluginEnabledState(SpecialPowers.Ci.nsIPluginTag.STATE_ENABLED); -</script> - -<p id="display"> - <div style="overflow:hidden; height:100px;" id="scroll"> - <embed type="application/x-test" wmode="window" width="100" height="800" id="plugin"></object> - <div style="height:1000px;"></div> - </div> -</p> -<div id="content" style="display: none"> - -</div> -<pre id="test"> -</pre> - -<script class="testbody" type="application/javascript"> -SimpleTest.waitForExplicitFinish(); - -var plugin = document.getElementById("plugin"); - -function consistencyCheck(state) { - var s = plugin.doInternalConsistencyCheck(); - ok(s == "", "Consistency check: " + state + ": " + s); -} - -function runTests() -{ - consistencyCheck("Initial state"); - - var scroll = document.getElementById("scroll"); - scroll.scrollTop = 10; - consistencyCheck("Scrolled down a bit"); - - setTimeout(function() { - consistencyCheck("Before scrolling back to top"); - scroll.scrollTop = 0; - consistencyCheck("Scrolled to top"); - - setTimeout(function() { - consistencyCheck("After scrolling to top"); - - SimpleTest.finish(); - }, 0); - }, 0); -} - -</script> -</body> - -</html> |