blob: 03bedacf58fbe0098fd1f03854dea2df419dbccb (
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
32
33
34
35
36
37
38
39
|
<!DOCTYPE html>
<script src="../../../resources/js-test.js"></script>
<style>
body {
height: 1000px;
}
#fixed {
position:fixed;
right: 20px;
width: 100px;
height: 40px;
background-color: #ace;
}
#text {
font: bold 18pt monospace;
}
</style>
<div id="fixed"></div>
<div id="text">TEXT</div>
<div id="console"></div>
<script>
var jsTestIsAsync = true;
description(
"This test verifies that text selection does not prevent smooth " +
"scrolls running on the main thread.");
eventSender.dragMode = false;
// Start a text selection.
eventSender.mouseMoveTo(20, 20);
eventSender.mouseDown();
eventSender.mouseMoveTo(40, 20);
eventSender.mouseScrollBy(0, -1);
shouldBecomeEqual("scrollY", "40", finishJSTest);
</script>
|