summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/test_synthmousemove.html
blob: fda86c341e413fb77c55482d67c4a1bbf61ea9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!doctype html>
<title>test synth mouse moves go to the right place with fission</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>

<script>
SimpleTest.waitForExplicitFinish();

function runTest() {
  window.open("file_synthmousemove.html", "_blank");
}

function reportSuccess() {
  ok(true, "reportSuccess");
  SimpleTest.finish();
}

var smoothScrollPref = "general.smoothScroll";
function prepareTest() {
  if (!SpecialPowers.getBoolPref("layout.reflow.synthMouseMove")) {
  	ok(true, "layout.reflow.synthMouseMove is false, we can't run this test");
    SimpleTest.finish();
  	return;
  }
  window.requestAnimationFrame(function() {
    SpecialPowers.pushPrefEnv({"set":[[smoothScrollPref, false]]}, runTest);
  });
}

SimpleTest.waitForFocus(prepareTest);
</script>