| OLD | NEW |
| 1 <html dir=rtl style="-webkit-writing-mode:vertical-lr"> | 1 <html dir=rtl style="-webkit-writing-mode:vertical-lr"> |
| 2 <head> | 2 <head> |
| 3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
| 4 <script language="javascript"> | 4 <script language="javascript"> |
| 5 window.jsTestIsAsync = true; | 5 window.jsTestIsAsync = true; |
| 6 | 6 |
| 7 function log(str) | 7 function log(str) |
| 8 { | 8 { |
| 9 var li = document.createElement("li"); | 9 var li = document.createElement("li"); |
| 10 li.appendChild(document.createTextNode(str)); | 10 li.appendChild(document.createTextNode(str)); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 function testSelectAll() { | 82 function testSelectAll() { |
| 83 // Test select all selects all document content. | 83 // Test select all selects all document content. |
| 84 window.resizeTo(500, 500); | 84 window.resizeTo(500, 500); |
| 85 var div = document.getElementById("div"); | 85 var div = document.getElementById("div"); |
| 86 div.focus(); | 86 div.focus(); |
| 87 document.execCommand("SelectAll"); | 87 document.execCommand("SelectAll"); |
| 88 var selection = window.getSelection(); | 88 var selection = window.getSelection(); |
| 89 assertEqual("selectAll selects all document", selection.toSt
ring().substring(0, div.innerHTML.length), div.innerHTML); | 89 assertEqual("selectAll selects all document", selection.toSt
ring().substring(0, div.innerHTML.length), div.innerHTML); |
| 90 | 90 |
| 91 div.style.display = "none"; | |
| 92 | |
| 93 finishJSTest(); | 91 finishJSTest(); |
| 94 } | 92 } |
| 95 } | 93 } |
| 96 </script> | 94 </script> |
| 97 </head> | 95 </head> |
| 98 <body> | 96 <body> |
| 99 <div id="div" style="whitespace:nowrap; width: 1000px; height: 4000px; b
order: 1px solid red;">Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad m
inim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea com
modo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse c
illum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non pro
ident, sunt in culpa qui officia deserunt mollit anim id est laborum."</div> | 97 <div id="div" style="whitespace:nowrap; width: 1000px; height: 4000px; b
order: 1px solid red;">Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad m
inim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea com
modo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse c
illum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non pro
ident, sunt in culpa qui officia deserunt mollit anim id est laborum."</div> |
| 100 <ul id="console" dir=ltr></ul> | 98 <ul id="console" dir=ltr></ul> |
| 101 </body> | 99 </body> |
| 102 </html> | 100 </html> |
| OLD | NEW |