|
3 | 3 | <head>
|
4 | 4 | <script src="../../resources/js-test-pre.js"></script>
|
5 | 5 | <style>
|
6 |
| -div.speech-none { speak: none; } |
7 |
| -div.speech-normal { speak: normal; } |
8 |
| -div.speech-spellout { speak: spell-out; } |
9 |
| -div.speech-digits { speak: digits; } |
10 |
| -div.speech-literalpunc { speak: literal-punctuation; } |
11 |
| -div.speech-nopunc { speak: no-punctuation; } |
| 6 | +div.speech-normal { speak-as: normal; } |
| 7 | +div.speech-spellout { speak-as: spell-out; } |
| 8 | +div.speech-digits { speak-as: digits; } |
| 9 | +div.speech-literalpunc { speak-as: literal-punctuation; } |
| 10 | +div.speech-nopunc { speak-as: no-punctuation; } |
| 11 | +div.digits-and-literal { speak-as: digits literal-punctuation; } |
| 12 | +div.spell-and-literal { speak-as: spell-out literal-punctuation; } |
12 | 13 | </style>
|
13 | 14 | </head>
|
14 | 15 | <body id="body">
|
15 | 16 |
|
16 | 17 |
|
17 | 18 | <div tabindex="0" id="initial" >Initial</div>
|
18 |
| -<div tabindex="0" id="speech-none" class="speech-none">No speech</div> |
19 | 19 | <div tabindex="0" id="speech-normal" class="speech-normal">Normal</div>
|
20 | 20 | <div tabindex="0" id="speech-spellout" class="speech-spellout">Spellout</div>
|
21 | 21 | <div tabindex="0" id="speech-digits" class="speech-digits">Digits</div>
|
22 | 22 | <div tabindex="0" id="speech-literalpunc" class="speech-literalpunc">Literal</div>
|
23 | 23 | <div tabindex="0" id="speech-nopunc" class="speech-nopunc">No punctuation</div>
|
| 24 | +<div tabindex="0" id="speech-digits-and-literal" class="digits-and-literal">Digits and Literal</div> |
| 25 | +<div tabindex="0" id="speech-spell-and-literal" class="spell-and-literal">Spell and Literal</div> |
24 | 26 |
|
25 |
| -<div style='speak: digits;'> |
| 27 | +<div style='speak-as: digits;'> |
26 | 28 | <div>
|
27 | 29 | <div>
|
28 | 30 | <a id="testlink" tabindex="0" href="#">test</a>
|
|
35 | 37 |
|
36 | 38 | <script>
|
37 | 39 |
|
38 |
| - description("This tests that using the CSS3-speech property 'speak' works as from a WebCore level (not a platform level, that is up to the platforms)"); |
| 40 | + description("This tests that using the CSS3-speech property 'speak-as' works as from a WebCore level (not a platform level, that is up to the platforms)"); |
39 | 41 |
|
40 | 42 | if (window.accessibilityController) {
|
41 | 43 |
|
42 | 44 | document.getElementById("initial").focus();
|
43 |
| - shouldBe("accessibilityController.focusedElement.childAtIndex(0).speak", "'normal'"); |
44 |
| - |
45 |
| - document.getElementById("speech-none").focus(); |
46 |
| - shouldBe("accessibilityController.focusedElement.childAtIndex(0).speak", "'none'"); |
| 45 | + shouldBe("accessibilityController.focusedElement.childAtIndex(0).speakAs", "'normal'"); |
47 | 46 |
|
48 | 47 | document.getElementById("speech-normal").focus();
|
49 |
| - shouldBe("accessibilityController.focusedElement.childAtIndex(0).speak", "'normal'"); |
| 48 | + shouldBe("accessibilityController.focusedElement.childAtIndex(0).speakAs", "'normal'"); |
50 | 49 |
|
51 | 50 | document.getElementById("speech-spellout").focus();
|
52 |
| - shouldBe("accessibilityController.focusedElement.childAtIndex(0).speak", "'spell-out'"); |
| 51 | + shouldBe("accessibilityController.focusedElement.childAtIndex(0).speakAs", "'spell-out'"); |
53 | 52 |
|
54 | 53 | document.getElementById("speech-digits").focus();
|
55 |
| - shouldBe("accessibilityController.focusedElement.childAtIndex(0).speak", "'digits'"); |
| 54 | + shouldBe("accessibilityController.focusedElement.childAtIndex(0).speakAs", "'normal, digits'"); |
56 | 55 |
|
57 | 56 | document.getElementById("speech-literalpunc").focus();
|
58 |
| - shouldBe("accessibilityController.focusedElement.childAtIndex(0).speak", "'literal-punctuation'"); |
| 57 | + shouldBe("accessibilityController.focusedElement.childAtIndex(0).speakAs", "'normal, literal-punctuation'"); |
59 | 58 |
|
60 | 59 | document.getElementById("speech-nopunc").focus();
|
61 |
| - shouldBe("accessibilityController.focusedElement.childAtIndex(0).speak", "'no-punctuation'"); |
| 60 | + shouldBe("accessibilityController.focusedElement.childAtIndex(0).speakAs", "'normal, no-punctuation'"); |
| 61 | + |
| 62 | + document.getElementById("speech-digits-and-literal").focus(); |
| 63 | + shouldBe("accessibilityController.focusedElement.childAtIndex(0).speakAs", "'normal, digits, literal-punctuation'"); |
| 64 | + |
| 65 | + document.getElementById("speech-spell-and-literal").focus(); |
| 66 | + shouldBe("accessibilityController.focusedElement.childAtIndex(0).speakAs", "'spell-out, literal-punctuation'"); |
62 | 67 |
|
63 | 68 | document.getElementById("testlink").focus();
|
64 |
| - shouldBe("accessibilityController.focusedElement.childAtIndex(0).speak", "'digits'"); |
| 69 | + shouldBe("accessibilityController.focusedElement.childAtIndex(0).speakAs", "'normal, digits'"); |
65 | 70 | }
|
66 | 71 |
|
67 | 72 | </script>
|
|
0 commit comments