| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 5 <p>This test checks <a href="http://dev.w3.org/html5/spec/Overview.html#bidirect
ional-text">the default rules for direction and unicode-bidi CSS properties</a>.
</p> | 5 <p>This test checks <a href="http://dev.w3.org/html5/spec/Overview.html#bidirect
ional-text">the default rules for direction and unicode-bidi CSS properties</a>.
</p> |
| 6 <div id="container"></div> | 6 <div id="container"></div> |
| 7 <div id="console"></div> | 7 <div id="console"></div> |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 var container = document.getElementById('container'); | 10 var container = document.getElementById('container'); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 ['pre', {'dir': 'auto'}, 'ltr', '-webkit-plaintext'], | 62 ['pre', {'dir': 'auto'}, 'ltr', '-webkit-plaintext'], |
| 63 ['pre', {'dir': ''}, 'ltr', 'embed'], | 63 ['pre', {'dir': ''}, 'ltr', 'embed'], |
| 64 ].forEach(function (test) { | 64 ].forEach(function (test) { |
| 65 shouldBe('styleOf("' + test[0] + '", ' + JSON.stringify(test[1]) + ').direct
ion', '"' + test[2] + '"'); | 65 shouldBe('styleOf("' + test[0] + '", ' + JSON.stringify(test[1]) + ').direct
ion', '"' + test[2] + '"'); |
| 66 container.innerHTML = ''; | 66 container.innerHTML = ''; |
| 67 shouldBe('styleOf("' + test[0] + '", ' + JSON.stringify(test[1]) + ').unicod
eBidi', '"' + test[3] + '"'); | 67 shouldBe('styleOf("' + test[0] + '", ' + JSON.stringify(test[1]) + ').unicod
eBidi', '"' + test[3] + '"'); |
| 68 container.innerHTML = ''; | 68 container.innerHTML = ''; |
| 69 }); | 69 }); |
| 70 | 70 |
| 71 </script> | 71 </script> |
| 72 <script src="../js/resources/js-test-post.js"></script> | |
| 73 </body> | 72 </body> |
| 74 </html> | 73 </html> |
| OLD | NEW |