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 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description('Test for .text for OPTION element'); | 10 description('Test for .text for OPTION element'); |
11 | 11 |
12 // See http://www.whatwg.org/specs/web-apps/current-work/multipage/common-micros
yntaxes.html#space-character | 12 // See http://www.whatwg.org/specs/web-apps/current-work/multipage/common-micros
yntaxes.html#space-character |
13 var HTMLSpaces = [ | 13 var HTMLSpaces = [ |
14 String.fromCharCode(0x20), | 14 String.fromCharCode(0x20), |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 option.text = nonHTMLSpaces[i] + nonHTMLSpaces[j] + 'text' + nonHTMLSpac
es[i] + nonHTMLSpaces[j] + 'text' + nonHTMLSpaces[i] + nonHTMLSpaces[j]; | 87 option.text = nonHTMLSpaces[i] + nonHTMLSpaces[j] + 'text' + nonHTMLSpac
es[i] + nonHTMLSpaces[j] + 'text' + nonHTMLSpaces[i] + nonHTMLSpaces[j]; |
88 expected = nonHTMLSpaces[i] + nonHTMLSpaces[j] + 'text' + nonHTMLSpaces[
i] + nonHTMLSpaces[j] + 'text' + nonHTMLSpaces[i] + nonHTMLSpaces[j]; | 88 expected = nonHTMLSpaces[i] + nonHTMLSpaces[j] + 'text' + nonHTMLSpaces[
i] + nonHTMLSpaces[j] + 'text' + nonHTMLSpaces[i] + nonHTMLSpaces[j]; |
89 shouldBe('option.text', 'expected'); | 89 shouldBe('option.text', 'expected'); |
90 } | 90 } |
91 } | 91 } |
92 debug(''); | 92 debug(''); |
93 </script> | 93 </script> |
94 | 94 |
95 </body> | 95 </body> |
96 </html> | 96 </html> |
OLD | NEW |