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

Unified Diff: chrome/test/data/extensions/api_test/automation/tests/desktop/hit_test.js

Issue 2900803003: Automation API hit test should automatically convert to integer coordinates. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/automation/sites/hit_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/automation/tests/desktop/hit_test.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/desktop/hit_test.js b/chrome/test/data/extensions/api_test/automation/tests/desktop/hit_test.js
index 924579c7f6fe82fa2be5c85531ab0c3513b370bf..57450169811a69c5803621db3a5a286ee3745fa8 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/desktop/hit_test.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/desktop/hit_test.js
@@ -20,10 +20,8 @@ var allTests = [
button.addEventListener(EventType.ALERT, function() {
chrome.test.succeed();
}, true);
- var cx = Math.floor(
- button.location.left + button.location.width / 2);
- var cy = Math.floor(
- button.location.top + button.location.height / 2);
+ var cx = button.location.left + button.location.width / 2;
+ var cy = button.location.top + button.location.height / 2;
desktop.hitTest(cx, cy, EventType.ALERT);
}
}
« no previous file with comments | « chrome/test/data/extensions/api_test/automation/sites/hit_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698