| OLD | NEW |
| 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 Loading... |
| 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.title.replace('AXTitle: ', ''); | 45 return axObject.deprecatedTitle.replace('AXTitle: ', ''); |
| 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> |
| OLD | NEW |