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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/drag-and-drop-autoscroll-use-count.html

Issue 2319623004: Add UMA for selection drag autoscroll. (Closed)
Patch Set: Change the test for MAC and merge with the master Created 4 years, 3 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <style type="text/css">
jochen (gone - plz use gerrit) 2016/09/09 13:19:25 <!DOCTYPE html>
2 #draggable {
3 padding: 5pt;
4 border: 3px solid #00cc00;
5 background: #00cccc;
6 width: 80px;
7 cursor: hand;
8 }
9 #scrollable {
10 height: 200px;
11 overflow: auto;
12 border: solid 3px #cc0000;
13 font-size: 80px;
14 }
15 </style>
16 <script src="../../resources/testharness.js"></script>
17 <script src="../../resources/testharnessreport.js"></script>
18 <div id="draggable" draggable="true">
19 <div id="scrollable">
20 <p>a</p>
21 <p>b</p>
22 <p>c</p>
23 <p>d</p>
24 <p>e</p>
25 <p>f</p>
26 <p>g</p>
27 <p>h</p>
28 <p>i</p>
29 <p>j</p>
30 </div>
31 <script>
32 test(function() {
33 if (!window.eventSender)
34 return;
35 var DragAndDropStart = 1552;
36 var scrollable = document.getElementById("scrollable");
37 var draggable = document.getElementById("draggable");
38 var dragStartX = draggable.offsetLeft + 5;
39 var dragStartY = draggable.offsetTop + 5;
40 var dragEndX = scrollable.offsetLeft + 5;
41 var dragEndY = scrollable.offsetTop + scrollable.offsetHeight - 10;
42
43 eventSender.mouseMoveTo(dragStartX, dragStartY);
44 eventSender.mouseDown();
45 eventSender.mouseMoveTo(dragEndX, dragEndY);
46 eventSender.mouseUp();
47 assert_true(internals.isUseCounted(document, DragAndDropStart));
48 }, "Tests that selection-drag autoscroll is recorded in UMA usecounter.");
49 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698