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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/svg-bounds.html

Issue 2169273004: Switch all LayoutTests to use new accessibility relative bounding box API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix absolute bounds in AXInlineTextBox::elementRect Created 4 years, 5 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
Index: third_party/WebKit/LayoutTests/accessibility/svg-bounds.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/svg-bounds.html b/third_party/WebKit/LayoutTests/accessibility/svg-bounds.html
index 236cbe1c5048383a11b7f545feb967d91373f965..f2282b3cc104f034ff3d12b527287efac419568a 100644
--- a/third_party/WebKit/LayoutTests/accessibility/svg-bounds.html
+++ b/third_party/WebKit/LayoutTests/accessibility/svg-bounds.html
@@ -47,8 +47,8 @@ if (window.testRunner && window.accessibilityController) {
var face = container.childAtIndex(0);
debug('Face role: ' + face.role);
debug('Face label: ' + face.name);
- debug('FaceX: ' + (pageX(face) - x));
- debug('FaceY: ' + Math.abs(pageY(face) - y));
+ debug('FaceX: ' + Math.floor(pageX(face) - x));
+ debug('FaceY: ' + Math.floor(Math.abs(pageY(face) - y)));
debug('<br>');
var eye = container.childAtIndex(1);
@@ -68,7 +68,7 @@ if (window.testRunner && window.accessibilityController) {
var mouth = container.childAtIndex(4);
debug('Mouth role: ' + mouth.role);
debug('Mouth label: ' + mouth.name);
- debug('MouthX: ' + (pageX(mouth) - x));
+ debug('MouthX: ' + Math.floor(pageX(mouth) - x));
debug('MouthY: ' + Math.floor(Math.abs(pageY(mouth) - y)));
debug('<br>');
@@ -91,4 +91,3 @@ if (window.testRunner && window.accessibilityController) {
</body>
</html>
-

Powered by Google App Engine
This is Rietveld 408576698