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

Unified Diff: chrome/test/data/extensions/api_test/automation/tests/tabs/location2.js

Issue 2285913002: Fix small error in relative bounds calc for Chrome OS only. (Closed)
Patch Set: Add regression test Created 4 years, 4 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/tests/tabs/location2.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/tabs/location2.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs/location2.js b/chrome/test/data/extensions/api_test/automation/tests/tabs/location2.js
new file mode 100644
index 0000000000000000000000000000000000000000..3ccd4e51e5e7ad44eb74b7e7a01a4e5291b4a39e
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/automation/tests/tabs/location2.js
@@ -0,0 +1,17 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+var allTests = [
+ // This is a regression test for a particular layout where the
+ // automation API was returning the wrong location for an element.
+ // See ../../sites/location2.html for the layout.
+ function testLocation2() {
+ var textbox = rootNode.find({ role: RoleType.textField });
+ assertEq(0, textbox.location.left - rootNode.location.left);
+ assertEq(100, textbox.location.top - rootNode.location.top);
+ chrome.test.succeed();
+ }
+];
+
+setUpAndRunTests(allTests, 'location2.html');
« no previous file with comments | « chrome/test/data/extensions/api_test/automation/tests/tabs/location2.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698