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

Side by Side Diff: chrome/test/data/find_in_page/start_after_selection.html

Issue 10533132: Add a test for FindInPage after selecting text. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: incorporated feedback + rebase Created 8 years, 6 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
(Empty)
1 <html>
2 <head>
3 <script>
4 function selectSpan() {
5 var selection = window.getSelection();
6 var range = document.createRange();
7 range.setStartBefore(document.getElementById('selectSpan'));
8 range.setEndAfter(document.getElementById('selectSpan'));
9 selection.addRange(range);
10 return "";
11 }
12 </script>
13 </head>
14 <body>
15 findMe some text
16 <br>
17 <span id="selectSpan">select this text</span>
18 some text.. find .. find ..
19 <br>
20 more text findMe and text.
21 <br><br><br>
22 <div id="log"><div>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698