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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/find_in_page/start_after_selection.html
diff --git a/chrome/test/data/find_in_page/start_after_selection.html b/chrome/test/data/find_in_page/start_after_selection.html
new file mode 100644
index 0000000000000000000000000000000000000000..9575628fc682cc59b9cb8c79b4c62f53123d89de
--- /dev/null
+++ b/chrome/test/data/find_in_page/start_after_selection.html
@@ -0,0 +1,24 @@
+<html>
+<head>
+<script>
+ function selectSpan() {
+ var selection = window.getSelection();
+ var range = document.createRange();
+ range.setStartBefore(document.getElementById('selectSpan'));
+ range.setEndAfter(document.getElementById('selectSpan'));
+ selection.addRange(range);
+ return "";
+ }
+</script>
+</head>
+<body>
+ findMe some text
+ <br>
+ <span id="selectSpan">select this text</span>
+ some text.. find .. find ..
+ <br>
+ more text findMe and text.
+ <br><br><br>
+ <div id="log"><div>
+</body>
+</html>
« 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