summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 16:27:26 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-06 16:27:26 +0000
commit7830da3ed3263e72e1eed0270dfac2397d94999f (patch)
treedee7371bd4e7a18c890e9b5e4dac23e45572c8a4 /chrome/test
parent66f360a2514dbf3eb2f519e035820d1855ec775a (diff)
downloadchromium_src-7830da3ed3263e72e1eed0270dfac2397d94999f.zip
chromium_src-7830da3ed3263e72e1eed0270dfac2397d94999f.tar.gz
chromium_src-7830da3ed3263e72e1eed0270dfac2397d94999f.tar.bz2
Update the find result index "(m of n)" whenever there is an active selection on a find next.
BUG=20883 TEST=included Review URL: http://codereview.chromium.org/335012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31234 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rwxr-xr-xchrome/test/data/find_in_page/select_changes_ordinal.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/chrome/test/data/find_in_page/select_changes_ordinal.html b/chrome/test/data/find_in_page/select_changes_ordinal.html
new file mode 100755
index 0000000..6d95248
--- /dev/null
+++ b/chrome/test/data/find_in_page/select_changes_ordinal.html
@@ -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> \ No newline at end of file