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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/touch/touch-action-preventDefault.html

Issue 2539183003: Don't log a console warning when touch-action is used. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/touch/touch-action-preventDefault-expected.txt » ('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 <!DOCTYPE html>
2 <script src='../../../resources/testharness.js'></script>
3 <script src='../../../resources/testharnessreport.js'></script>
4 <style>
5 #first {width: 100px; height: 50px; }
6 #second {width: 100px; height: 50px; touch-action: none;}
7 </style>
8 <body>
9 <div id="first"></div>
10 <div id="second"></div>
11 <script>
12 test(function() {
13 var handler = (e) => {e.preventDefault();};
14 window.addEventListener('touchstart', handler);
15 eventSender.addTouchPoint(15, 15);
16 eventSender.touchStart();
17 eventSender.clearTouchPoints();
18 window.removeEventListener('touchstart', handler);
19 }, 'Forced passive event listener');
20 test(function() {
21 var handler = (e) => {e.preventDefault();};
22 window.addEventListener('touchstart', handler);
23 eventSender.addTouchPoint(15, 70);
24 eventSender.touchStart();
25 window.removeEventListener('touchstart', handler);
26 }, 'Forced passive event listener with touch-action');
27 </script>
28 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/touch/touch-action-preventDefault-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698