Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / whitespace-in-name-calc.html
blob11fd349a5108b557e6137d44c72efdce6ebb8435
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body>
8 <!-- Cases with no whitespace -->
10 <button id="n1"><span>Hello</span>World</button>
11 <button id="n2">Hello<span>World</span></button>
12 <button id="n3"><span>Hello</span><span>World</span></button>
13 <button id="n4"><b>Hello</b><b>World</b></button>
14 <button id="n5"><div style="display:inline">Hello</div><div style="display:inline">World</div></button>
15 <div role="button" id="n6"><span>Hello</span>World</div>
17 <!-- Cases where whitespace should be added -->
19 <button id="y1">
20 <div>Hello</div><div>World</div>
21 </button>
22 <button id="y2">
23 <span style="float:left">Hello</span>World
24 </button>
25 <button id="y3">
26 <span style="float:left">Hello</span><span style="float:right">World</span>
27 </button>
28 <div role="button" id="y4">
29 <div>Hello</div><div>World</div>
30 </div>
31 <div role="button" id="y5">
32 <span style="float:left">Hello</span>World
33 </div>
34 <div role="button" id="y6">
35 <span style="float:left">Hello</span><span style="float:right">World</span>
36 </div>
38 <div id="console"></div>
39 <script>
40 if (window.testRunner && window.accessibilityController) {
41 testRunner.dumpAsText();
43 function accessibleTitle(id) {
44 var axObject = accessibilityController.accessibleElementById(id);
45 return axObject.deprecatedTitle.replace('AXTitle: ', '');
48 shouldBe('accessibleTitle("n1")', '"HelloWorld"');
49 shouldBe('accessibleTitle("n2")', '"HelloWorld"');
50 shouldBe('accessibleTitle("n3")', '"HelloWorld"');
51 shouldBe('accessibleTitle("n4")', '"HelloWorld"');
52 shouldBe('accessibleTitle("n5")', '"HelloWorld"');
53 shouldBe('accessibleTitle("n6")', '"HelloWorld"');
55 shouldBe('accessibleTitle("y1")', '"Hello World"');
56 shouldBe('accessibleTitle("y2")', '"Hello World"');
57 shouldBe('accessibleTitle("y3")', '"Hello World"');
58 shouldBe('accessibleTitle("y4")', '"Hello World"');
59 shouldBe('accessibleTitle("y5")', '"Hello World"');
60 shouldBe('accessibleTitle("y6")', '"Hello World"');
62 </script>
64 </body>
65 </html>