OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script src="../../fast/js/resources/js-test-pre.js"></script> | 3 <script src="../../fast/js/resources/js-test-pre.js"></script> |
4 <div id="test" contenteditable></div> | 4 <div id="test" contenteditable></div> |
5 <script> | 5 <script> |
6 description("Tests queryCommandValue returns empty string for unsupported comman
ds"); | 6 description("Tests queryCommandValue returns empty string for unsupported comman
ds"); |
7 | 7 |
8 var test = document.getElementById('test'); | 8 var test = document.getElementById('test'); |
9 test.focus(); | 9 test.focus(); |
10 document.execCommand('fontSize', false, 5); | 10 document.execCommand('fontSize', false, 5); |
11 shouldBe("document.queryCommandValue('foofoo')", "''"); | 11 shouldBe("document.queryCommandValue('foofoo')", "''"); |
12 shouldBe("typeof document.queryCommandValue('foofoo')", "'string'"); | 12 shouldBe("typeof document.queryCommandValue('foofoo')", "'string'"); |
13 shouldBe("document.queryCommandValue('fontSize')", "'5'"); | 13 shouldBe("document.queryCommandValue('fontSize')", "'5'"); |
14 shouldBe("typeof document.queryCommandValue('fontSize')", "'string'"); | 14 shouldBe("typeof document.queryCommandValue('fontSize')", "'string'"); |
15 </script> | 15 </script> |
16 <script src="../../fast/js/resources/js-test-post.js"></script> | |
17 </html> | 16 </html> |
OLD | NEW |