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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html

Issue 2838393002: Assert the location is correct when processing a tap request. (Closed)
Patch Set: Add layout test Created 3 years, 7 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 | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src='../../../resources/testharness.js'></script> 2 <script src='../../../resources/testharness.js'></script>
3 <script src='../../../resources/testharnessreport.js'></script> 3 <script src='../../../resources/testharnessreport.js'></script>
4 <style type="text/css"> 4 <style type="text/css">
5 #box { 5 #box {
6 width: 300px; 6 width: 300px;
7 height: 100px; 7 height: 100px;
8 } 8 }
9 </style> 9 </style>
10 <div id="box" ></div> 10 <div id="box" ></div>
(...skipping 23 matching lines...) Expand all
34 if (window.chrome && chrome.gpuBenchmarking) { 34 if (window.chrome && chrome.gpuBenchmarking) {
35 chrome.gpuBenchmarking.tap(x, y, function() { 35 chrome.gpuBenchmarking.tap(x, y, function() {
36 assert_true(receivedTap); 36 assert_true(receivedTap);
37 testTap.done(); 37 testTap.done();
38 }); 38 });
39 } 39 }
40 }); 40 });
41 41
42 }, 'Test that chrome.gpuBenchmarking.tap always taps on the expected position no matter what the screen scale factor is.'); 42 }, 'Test that chrome.gpuBenchmarking.tap always taps on the expected position no matter what the screen scale factor is.');
43 43
44 </script> 44 test(function(t) {
45 if (window.chrome && chrome.gpuBenchmarking) {
46 var exception;
47 try {
48 chrome.gpuBenchmarking.tap(-1, -1, t.unreached_func('Listener should not fire'));
49 } catch(e) {
50 exception = e;
51 }
52 assert_not_equals(exception, undefined);
53 }
54 }, 'Test that chrome.gpuBenchmarking.tap throws an exception on invalid input va lues.');
55
56 </script>
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698