summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/helper_transform_end_on_wheel_scroll.html
blob: af4f72cf447c6c4e630731225357283e09c1dafd (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
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<script src="apz_test_utils.js"></script>
<script src="apz_test_native_event_utils.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/paint_listener.js"></script>
<style>
html, body { margin: 0; }

body {
  height: 10000px;
}
</style>

<script>
async function test() {
  let transformEndPromise = promiseTransformEnd();
  await promiseMoveMouseAndScrollWheelOver(document.documentElement, 100, 100);

  await transformEndPromise;
  ok(true, "Got an APZ:TransformEnd ");
}
waitUntilApzStable()
.then(test)
.then(subtestDone, subtestFailed);
</script>