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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/whitespace-in-name-calc.html

Issue 1417213006: Switch all LayoutTests to use new AX name calculation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix canvas-fallback-content-labels-expected.txt Created 5 years, 1 month 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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 7
8 <!-- Cases with no whitespace --> 8 <!-- Cases with no whitespace -->
9 9
10 <button id="n1"><span>Hello</span>World</button> 10 <button id="n1"><span>Hello</span>World</button>
(...skipping 24 matching lines...) Expand all
35 <span style="float:left">Hello</span><span style="float:right">World</span> 35 <span style="float:left">Hello</span><span style="float:right">World</span>
36 </div> 36 </div>
37 37
38 <div id="console"></div> 38 <div id="console"></div>
39 <script> 39 <script>
40 if (window.testRunner && window.accessibilityController) { 40 if (window.testRunner && window.accessibilityController) {
41 testRunner.dumpAsText(); 41 testRunner.dumpAsText();
42 42
43 function accessibleTitle(id) { 43 function accessibleTitle(id) {
44 var axObject = accessibilityController.accessibleElementById(id); 44 var axObject = accessibilityController.accessibleElementById(id);
45 return axObject.deprecatedTitle.replace('AXTitle: ', ''); 45 return axObject.name.replace('', '');
46 } 46 }
47 47
48 shouldBe('accessibleTitle("n1")', '"HelloWorld"'); 48 shouldBe('accessibleTitle("n1")', '"HelloWorld"');
49 shouldBe('accessibleTitle("n2")', '"HelloWorld"'); 49 shouldBe('accessibleTitle("n2")', '"HelloWorld"');
50 shouldBe('accessibleTitle("n3")', '"HelloWorld"'); 50 shouldBe('accessibleTitle("n3")', '"HelloWorld"');
51 shouldBe('accessibleTitle("n4")', '"HelloWorld"'); 51 shouldBe('accessibleTitle("n4")', '"HelloWorld"');
52 shouldBe('accessibleTitle("n5")', '"HelloWorld"'); 52 shouldBe('accessibleTitle("n5")', '"HelloWorld"');
53 shouldBe('accessibleTitle("n6")', '"HelloWorld"'); 53 shouldBe('accessibleTitle("n6")', '"HelloWorld"');
54 54
55 shouldBe('accessibleTitle("y1")', '"Hello World"'); 55 shouldBe('accessibleTitle("y1")', '"Hello World"');
56 shouldBe('accessibleTitle("y2")', '"Hello World"'); 56 shouldBe('accessibleTitle("y2")', '"Hello World"');
57 shouldBe('accessibleTitle("y3")', '"Hello World"'); 57 shouldBe('accessibleTitle("y3")', '"Hello World"');
58 shouldBe('accessibleTitle("y4")', '"Hello World"'); 58 shouldBe('accessibleTitle("y4")', '"Hello World"');
59 shouldBe('accessibleTitle("y5")', '"Hello World"'); 59 shouldBe('accessibleTitle("y5")', '"Hello World"');
60 shouldBe('accessibleTitle("y6")', '"Hello World"'); 60 shouldBe('accessibleTitle("y6")', '"Hello World"');
61 } 61 }
62 </script> 62 </script>
63 63
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698