| Index: third_party/WebKit/Source/web/tests/TextFinderTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/TextFinderTest.cpp b/third_party/WebKit/Source/web/tests/TextFinderTest.cpp
|
| index dc79c9f70374412e547454a6092adb04a728f5a3..c7d60901064d37b95840238980ca8b15d91d728e 100644
|
| --- a/third_party/WebKit/Source/web/tests/TextFinderTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/TextFinderTest.cpp
|
| @@ -433,6 +433,22 @@ protected:
|
| TimeProxyPlatform m_proxyTimePlatform;
|
| };
|
|
|
| +TEST_F(TextFinderTest, WhitespaceMatches)
|
| +{
|
| + document().body()->setInnerHTML("<span>Some text </span> <input type='button' value='Button text'/><span>Some more text</span>", ASSERT_NO_EXCEPTION);
|
| +
|
| + int identifier = 0;
|
| + WebString searchText(String(" "));
|
| + WebFindOptions findOptions; // Default.
|
| +
|
| + textFinder().resetMatchCount();
|
| + textFinder().scopeStringMatches(identifier, searchText, findOptions, true);
|
| + while (textFinder().scopingInProgress())
|
| + runPendingTasks();
|
| +
|
| + EXPECT_EQ(5, textFinder().totalMatchCount());
|
| +}
|
| +
|
| TEST_F(TextFinderFakeTimerTest, ScopeWithTimeouts)
|
| {
|
| // Make a long string.
|
|
|