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

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: nits + rebase Created 8 years, 3 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
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_host_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/browser/ui/find_bar/find_bar_host_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698