OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "web/TextFinder.h" | 5 #include "web/TextFinder.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionStatePlaceholder.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
8 #include "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
9 #include "core/dom/NodeList.h" | 9 #include "core/dom/NodeList.h" |
10 #include "core/dom/Range.h" | 10 #include "core/dom/Range.h" |
11 #include "core/dom/shadow/ShadowRoot.h" | 11 #include "core/dom/shadow/ShadowRoot.h" |
12 #include "core/frame/FrameHost.h" | 12 #include "core/frame/FrameHost.h" |
13 #include "core/frame/FrameView.h" | 13 #include "core/frame/FrameView.h" |
14 #include "core/frame/VisualViewport.h" | 14 #include "core/frame/VisualViewport.h" |
15 #include "core/html/HTMLElement.h" | 15 #include "core/html/HTMLElement.h" |
16 #include "core/layout/TextAutosizer.h" | 16 #include "core/layout/TextAutosizer.h" |
17 #include "core/page/Page.h" | 17 #include "core/page/Page.h" |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 // of the TimeProxyPlatform timer is greater than timeout threshold. | 605 // of the TimeProxyPlatform timer is greater than timeout threshold. |
606 textFinder().startScopingStringMatches(identifier, searchPattern, | 606 textFinder().startScopingStringMatches(identifier, searchPattern, |
607 findOptions); | 607 findOptions); |
608 while (textFinder().scopingInProgress()) | 608 while (textFinder().scopingInProgress()) |
609 runPendingTasks(); | 609 runPendingTasks(); |
610 | 610 |
611 EXPECT_EQ(4, textFinder().totalMatchCount()); | 611 EXPECT_EQ(4, textFinder().totalMatchCount()); |
612 } | 612 } |
613 | 613 |
614 } // namespace blink | 614 } // namespace blink |
OLD | NEW |