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

Unified Diff: chrome/test/data/find_in_page/select_changes_ordinal.html

Issue 335012: Update the find result index "(m of n)" whenever there is an active selection... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: simplify test Created 11 years, 1 month 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/renderer/render_view.cc ('k') | webkit/api/src/WebFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/find_in_page/select_changes_ordinal.html
===================================================================
--- chrome/test/data/find_in_page/select_changes_ordinal.html (revision 0)
+++ chrome/test/data/find_in_page/select_changes_ordinal.html (revision 0)
@@ -0,0 +1,23 @@
+<html>
+<head>
+<script>
+ function selectLink1() {
+ var selection = window.getSelection();
+ var range = document.createRange();
+ range.setStartBefore(document.getElementById('link1'));
+ range.setEndAfter(document.getElementById('link1'));
+ selection.addRange(range);
+ return "";
+ }
+</script>
+</head>
+<body>
+ google has many links on google.
+ here is a <a id="link1" href="http://www.google.com">link</a>
+ to <a id="link2" href="http://www.google.com">google</a>, where
+ you will find google.
+
+ <br><br><br>
+ <div id="log"><div>
+</body>
+</html>
Property changes on: chrome\test\data\find_in_page\select_changes_ordinal.html
___________________________________________________________________
Added: svn:executable
+ *
« no previous file with comments | « chrome/renderer/render_view.cc ('k') | webkit/api/src/WebFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698