| OLD | NEW |
| 1 | 1 |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="ISO-8859-8"> | 4 <meta charset="ISO-8859-8"> |
| 5 <body> | 5 <body> |
| 6 <p>Test rendering of ISO-8859-8. | 6 <p>Test rendering of ISO-8859-8. |
| 7 <p> | 7 <p> |
| 8 <div class="test">ùðá</div> | 8 <div class="test">ùðá</div> |
| 9 <div class="test">ùðá â÷ë </div> | 9 <div class="test">ùðá â÷ë </div> |
| 10 <div class="test">ùðá abc â÷ë</div> | 10 <div class="test">ùðá abc â÷ë</div> |
| 11 <div class="test">abc ùðá def</div> | 11 <div class="test">abc ùðá def</div> |
| 12 <div class="test">ùðá <span dir=ltr>â÷ë</span></div> | 12 <div class="test">ùðá <span dir=ltr>â÷ë</span></div> |
| 13 <div class="test">ùðá <span dir=rtl>â÷ë</span></div> | 13 <div class="test">ùðá <span dir=rtl>â÷ë</span></div> |
| 14 <ul id="console" dir=ltr></ul> | 14 <ul id="console" dir=ltr></ul> |
| 15 | 15 |
| 16 <script src="../../js/resources/js-test-pre.js"></script> | 16 <script src="../../../resources/js-test.js"></script> |
| 17 <script> | 17 <script> |
| 18 var succeed = true; | 18 var succeed = true; |
| 19 | 19 |
| 20 function checkClientRect(test, index, offset, dir, char) | 20 function checkClientRect(test, index, offset, dir, char) |
| 21 { | 21 { |
| 22 if (test.nodeType == 3) { | 22 if (test.nodeType == 3) { |
| 23 for (var i = 0; i < test.textContent.length; ++i) { | 23 for (var i = 0; i < test.textContent.length; ++i) { |
| 24 range.setStart(test, i); | 24 range.setStart(test, i); |
| 25 range.setEnd(test, i+1); | 25 range.setEnd(test, i+1); |
| 26 rects = range.getClientRects(); | 26 rects = range.getClientRects(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 tests[i].style.direction = "rtl"; | 58 tests[i].style.direction = "rtl"; |
| 59 checkClientRect(tests[i], i, 10000, "rtl", " "); | 59 checkClientRect(tests[i], i, 10000, "rtl", " "); |
| 60 | 60 |
| 61 tests[i].style.display = "none"; | 61 tests[i].style.display = "none"; |
| 62 } | 62 } |
| 63 if (succeed == true) | 63 if (succeed == true) |
| 64 testPassed("Test completed successfully"); | 64 testPassed("Test completed successfully"); |
| 65 </script> | 65 </script> |
| 66 </body> | 66 </body> |
| 67 </html> | 67 </html> |
| OLD | NEW |