OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="content-type" content="text/html; charset=utf-8"> | 4 <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
5 <script src="../../fast/js/resources/js-test-pre.js"></script> | 5 <script src="../../fast/js/resources/js-test-pre.js"></script> |
6 <style type="text/css"> | 6 <style type="text/css"> |
7 #tests { font-size: 2.5em; padding: 0px; margin: 0px; } | 7 #tests { font-size: 2.5em; padding: 0px; margin: 0px; } |
8 dt { width: 15ex; padding: 0px 10px; margin: 0px; } | 8 dt { width: 15ex; padding: 0px 10px; margin: 0px; } |
9 dd { font-size: 0.6em; margin: 0px; padding: 0px 10px; } | 9 dd { font-size: 0.6em; margin: 0px; padding: 0px 10px; } |
10 .target { background-color: #bbeeff; } | 10 .target { background-color: #bbeeff; } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 debug('This test requires eventSender'); | 98 debug('This test requires eventSender'); |
99 document.onselectionchange = function () { | 99 document.onselectionchange = function () { |
100 var selection = window.getSelection(); | 100 var selection = window.getSelection(); |
101 document.getElementById('log').textContent = globalOffsetFromNodeOffsetP
air(selection.baseNode, selection.baseOffset) + ', ' + | 101 document.getElementById('log').textContent = globalOffsetFromNodeOffsetP
air(selection.baseNode, selection.baseOffset) + ', ' + |
102 globalOffsetFromNodeOffsetPair(selection.extentNode, selection.exten
tOffset); | 102 globalOffsetFromNodeOffsetPair(selection.extentNode, selection.exten
tOffset); |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 | 106 |
107 </script> | 107 </script> |
108 <script src="../../fast/js/resources/js-test-post.js"></script> | |
109 </body> | 108 </body> |
110 </html> | 109 </html> |
OLD | NEW |