Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Side by Side Diff: Source/web/tests/data/select_range_basic.html

Issue 177903010: Expose the selection root bounds in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add missing test files Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html id='root'>
3 <body> 3 <body>
4 Some extra text. 4 Some extra text.
5 <span id='target'>Some test text for testing.</span> 5 <span id='target'>Some test text for testing.</span>
6 Some extra text. 6 Some extra text.
7 <script> 7 <script>
8 function select() { 8 function select() {
9 var range = document.createRange(); 9 var range = document.createRange();
10 range.selectNode(document.getElementById('target')); 10 range.selectNode(document.getElementById('target'));
11 window.getSelection().addRange(range); 11 window.getSelection().addRange(range);
12 } 12 }
13 window.onload = select; 13 window.onload = select;
14 </script> 14 </script>
15 </body> 15 </body>
16 </html> 16 </html>
17 17
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698