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

Unified Diff: LayoutTests/fast/text/window-find.html

Issue 868463002: Support WholeWord in window.find() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix nit Created 5 years, 7 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 | « no previous file | Source/core/editing/Editor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/text/window-find.html
diff --git a/LayoutTests/fast/text/window-find.html b/LayoutTests/fast/text/window-find.html
index 04d3b23098f313893404dda42aea82b7092b5293..de26dec3e1803bee9decce28b5af2fe3550b1392 100644
--- a/LayoutTests/fast/text/window-find.html
+++ b/LayoutTests/fast/text/window-find.html
@@ -38,6 +38,12 @@ function runTest() {
if (!window.find('for', false, false, true)) fail('not found: for');
if (!window.find('for', true, false, true)) fail('not found: for');
if (window.find('FOR', true, false, true)) fail('found: FOR');
+ // WholeWord.
+ if (!window.find('for', false, false, true, true)) fail('whole word not found: for');
+ if (!window.find('find', false, false, true, true)) fail('whole word not found: find');
+ if (window.find('this', true, false, false, true)) fail('whole word found: this');
+ if (window.find('est', false, false, false, true)) fail('whole word found: est');
+ if (window.find('succ', false, false, false, true)) fail('whole word found: succ');
if (window.testRunner)
testRunner.notifyDone();
« no previous file with comments | « no previous file | Source/core/editing/Editor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698