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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/draw-focus-if-needed.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, 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <head> 2 <head>
3 <title>Canvas test: drawSystemFocusRing</title> 3 <title>Canvas test: drawSystemFocusRing</title>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body style="padding: 0; margin: 0"> 6 <body style="padding: 0; margin: 0">
7 <canvas id="canvas" class="output" width="300" height="350"> 7 <canvas id="canvas" class="output" width="300" height="350">
8 <button id="button1"></button> 8 <button id="button1"></button>
9 <div id="container"> 9 <div id="container">
10 <button id="button2"></button> 10 <button id="button2"></button>
11 </div> 11 </div>
12 </canvas> 12 </canvas>
13 <div id="console"></div>
13 <script> 14 <script>
14 if (window.testRunner) 15 if (window.testRunner)
15 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
16 17
17 if (window.accessibilityController) { 18 if (window.accessibilityController) {
18 window.axButton1 = window.accessibilityController.accessibleElementById("but ton1"); 19 window.axButton1 = window.accessibilityController.accessibleElementById("but ton1");
19 window.axContainer = window.accessibilityController.accessibleElementById("c ontainer"); 20 window.axContainer = window.accessibilityController.accessibleElementById("c ontainer");
20 window.axButton2 = window.accessibilityController.accessibleElementById("but ton2"); 21 window.axButton2 = window.accessibilityController.accessibleElementById("but ton2");
21 } 22 }
22 23
(...skipping 24 matching lines...) Expand all
47 shouldBe("axContainer.y", "200"); 48 shouldBe("axContainer.y", "200");
48 shouldBe("axContainer.width", "200"); 49 shouldBe("axContainer.width", "200");
49 shouldBe("axContainer.height", "100"); 50 shouldBe("axContainer.height", "100");
50 51
51 shouldBe("axButton2.x", "50"); 52 shouldBe("axButton2.x", "50");
52 shouldBe("axButton2.y", "200"); 53 shouldBe("axButton2.y", "200");
53 shouldBe("axButton2.width", "200"); 54 shouldBe("axButton2.width", "200");
54 shouldBe("axButton2.height", "100"); 55 shouldBe("axButton2.height", "100");
55 </script> 56 </script>
56 </body> 57 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698