OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('Tests the behavior of .inputMode of HTMLTextAreaElement.'); | 8 description('Tests the behavior of .inputMode of HTMLTextAreaElement.'); |
9 | 9 |
10 var textarea = document.createElement('textarea'); | 10 var textarea = document.createElement('textarea'); |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // Non-string. | 42 // Non-string. |
43 debug('Setting non-string to inputMode:'); | 43 debug('Setting non-string to inputMode:'); |
44 textarea.inputMode = 256; | 44 textarea.inputMode = 256; |
45 shouldBe('textarea.inputMode', '"256"'); | 45 shouldBe('textarea.inputMode', '"256"'); |
46 shouldBe('textarea.getAttribute("inputmode")', '"256"'); | 46 shouldBe('textarea.getAttribute("inputmode")', '"256"'); |
47 textarea.setAttribute('inputmode', 256); | 47 textarea.setAttribute('inputmode', 256); |
48 shouldBe('textarea.inputMode', '"256"'); | 48 shouldBe('textarea.inputMode', '"256"'); |
49 | 49 |
50 </script> | 50 </script> |
51 <script src="../../../fast/js/resources/js-test-post.js"></script> | |
52 </body> | 51 </body> |
53 </html> | 52 </html> |
OLD | NEW |