Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/autoscroll-disabled-user-select-none.html

Issue 2536083002: SelectionAutoscroll should not happen in user-select:none. (Closed)
Patch Set: To pass the tests. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <script src="../../resources/testharness.js"></script>
2 <script src="../../resources/testharnessreport.js"></script>
3 <div id="container" style="height: 400px; overflow: auto;">
4 <div style="-webkit-user-select:none; height: 2000px; background-color: yellow ">
5 Hello World! Hello Woorld! Hello Wooorld! Hello Woooorld!<br />
6 Hello World! Hello Woorld! Hello Wooorld! Hello Woooorld!<br />
7 Hello World! Hello Woorld! Hello Wooorld! Hello Woooorld!<br />
8 Hello World! Hello Woorld! Hello Wooorld! Hello Woooorld!<br />
9 Hello World! Hello Woorld! Hello Wooorld! Hello Woooorld!<br />
10 </div>
11 </div>
12 <script>
13 var testSelectNone = async_test("Selection-autoscroll should not be triggered wh en the selection happens in an element with user-select:none");
14 testSelectNone.step(function() {
15 if (!window.eventSender)
16 return;
17 var dragStartX = 50;
18 var dragStartY = 50;
19 var dragEndX = 60;
20 var dragEndY = 400;
21 var container = document.getElementById("container");
22
23 eventSender.dragMode = false;
24 eventSender.mouseMoveTo(dragStartX, dragStartY);
25 eventSender.mouseDown();
26 eventSender.mouseMoveTo(dragEndX, dragEndY);
27
28 requestAnimationFrame(function() {
29 assert_equals(container.scrollTop, 0);
30 testSelectNone.done();
31 });
32 });
33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698