OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 <script> | 4 <script> |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 description('This tests that setting the dir attribute to rtl and clearing it de
faults to ltr.'); | 7 description('This tests that setting the dir attribute to rtl and clearing it de
faults to ltr.'); |
8 onload = function() { | 8 onload = function() { |
9 document.body.dir = 'rtl'; | 9 document.body.dir = 'rtl'; |
10 document.body.offsetTop; | 10 document.body.offsetTop; |
11 document.body.dir = ''; | 11 document.body.dir = ''; |
12 shouldBeEqualToString('window.getComputedStyle(document.body).direction', 'l
tr'); | 12 shouldBeEqualToString('window.getComputedStyle(document.body).direction', 'l
tr'); |
13 if (window.testRunner) | 13 if (window.testRunner) |
14 testRunner.notifyDone(); | 14 testRunner.notifyDone(); |
15 } | 15 } |
16 </script> | 16 </script> |
17 <body> | 17 <body> |
OLD | NEW |