| 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 <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 useCSS command'); | 10 description('Test useCSS command'); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 if (document.queryCommandState('useCSS') === false) | 43 if (document.queryCommandState('useCSS') === false) |
| 44 testPassed("queryCommandState('useCSS') returns false"); | 44 testPassed("queryCommandState('useCSS') returns false"); |
| 45 else | 45 else |
| 46 testFailed("queryCommandState('useCSS') should return boolean false"); | 46 testFailed("queryCommandState('useCSS') should return boolean false"); |
| 47 | 47 |
| 48 if (document.queryCommandValue('useCSS') === "") | 48 if (document.queryCommandValue('useCSS') === "") |
| 49 testPassed("queryCommandValue('useCSS') returns ''"); | 49 testPassed("queryCommandValue('useCSS') returns ''"); |
| 50 else | 50 else |
| 51 testFailed("queryCommandValue('useCSS') should return string ''"); | 51 testFailed("queryCommandValue('useCSS') should return string ''"); |
| 52 | 52 |
| 53 testSingleToggle("underline", "test", "<span style=\"text-decoration: underline;
\">test</span>"); | 53 testSingleToggle("underline", "test", "<span style=\"text-decoration-line: under
line;\">test</span>"); |
| 54 | 54 |
| 55 document.body.removeChild(testContainer); | 55 document.body.removeChild(testContainer); |
| 56 | 56 |
| 57 </script> | 57 </script> |
| 58 <script src="../../fast/js/resources/js-test-post.js"></script> | 58 <script src="../../fast/js/resources/js-test-post.js"></script> |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |