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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html b/third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html
index 834942ac115fe8aeb72478c4c0f08c9faab690a4..4de60faa2c316c4d9dc7b77f92a907b328d30f6d 100644
--- a/third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html
+++ b/third_party/WebKit/LayoutTests/fast/events/synthetic-events/tap-on-scaled-screen.html
@@ -41,4 +41,16 @@ testTap.step(function () {
}, 'Test that chrome.gpuBenchmarking.tap always taps on the expected position no matter what the screen scale factor is.');
-</script>
+test(function(t) {
+ if (window.chrome && chrome.gpuBenchmarking) {
+ var exception;
+ try {
+ chrome.gpuBenchmarking.tap(-1, -1, t.unreached_func('Listener should not fire'));
+ } catch(e) {
+ exception = e;
+ }
+ assert_not_equals(exception, undefined);
+ }
+}, 'Test that chrome.gpuBenchmarking.tap throws an exception on invalid input values.');
+
+</script>
« 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