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="../../resources/js-test.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'); |
11 | 11 |
12 function styleOf(name, attributes) { | 12 function styleOf(name, attributes) { |
13 var element = document.createElement(name); | 13 var element = document.createElement(name); |
14 for (var name in attributes) { | 14 for (var name in attributes) { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 </body> | 72 </body> |
73 </html> | 73 </html> |
OLD | NEW |