| 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="../../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 styleWithCSS command'); | 10 description('Test styleWithCSS command'); |
| 11 | 11 |
| 12 function testStyleWithCSS(styleArg, expectedState) | 12 function testStyleWithCSS(styleArg, expectedState) |
| 13 { | 13 { |
| 14 document.execCommand('styleWithCSS', false, styleArg); | 14 document.execCommand('styleWithCSS', false, styleArg); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 42 testFailed("queryCommandState('styleWithCSS') should return boolean false"); | 42 testFailed("queryCommandState('styleWithCSS') should return boolean false"); |
| 43 | 43 |
| 44 if (document.queryCommandValue('styleWithCSS') === 'false') | 44 if (document.queryCommandValue('styleWithCSS') === 'false') |
| 45 testPassed("queryCommandValue('styleWithCSS') returns 'false'"); | 45 testPassed("queryCommandValue('styleWithCSS') returns 'false'"); |
| 46 else | 46 else |
| 47 testFailed("queryCommandValue('styleWithCSS') should return 'false'"); | 47 testFailed("queryCommandValue('styleWithCSS') should return 'false'"); |
| 48 | 48 |
| 49 </script> | 49 </script> |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| OLD | NEW |