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/ExceptionStatePlaceholder.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/VisualViewport.h" |
13 #include "core/html/HTMLElement.h" | 14 #include "core/html/HTMLElement.h" |
14 #include "core/layout/TextAutosizer.h" | 15 #include "core/layout/TextAutosizer.h" |
15 #include "core/page/Page.h" | 16 #include "core/page/Page.h" |
16 #include "platform/testing/TestingPlatformSupport.h" | 17 #include "platform/testing/TestingPlatformSupport.h" |
17 #include "platform/testing/UnitTestHelpers.h" | 18 #include "platform/testing/UnitTestHelpers.h" |
18 #include "public/platform/Platform.h" | 19 #include "public/platform/Platform.h" |
19 #include "public/web/WebDocument.h" | 20 #include "public/web/WebDocument.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
21 #include "web/FindInPageCoordinates.h" | 22 #include "web/FindInPageCoordinates.h" |
22 #include "web/WebLocalFrameImpl.h" | 23 #include "web/WebLocalFrameImpl.h" |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 // There will be only one iteration before timeout, because increment | 495 // There will be only one iteration before timeout, because increment |
495 // of the TimeProxyPlatform timer is greater than timeout threshold. | 496 // of the TimeProxyPlatform timer is greater than timeout threshold. |
496 textFinder().scopeStringMatches(identifier, searchPattern, findOptions, true
); | 497 textFinder().scopeStringMatches(identifier, searchPattern, findOptions, true
); |
497 while (textFinder().scopingInProgress()) | 498 while (textFinder().scopingInProgress()) |
498 runPendingTasks(); | 499 runPendingTasks(); |
499 | 500 |
500 EXPECT_EQ(4, textFinder().totalMatchCount()); | 501 EXPECT_EQ(4, textFinder().totalMatchCount()); |
501 } | 502 } |
502 | 503 |
503 } // namespace blink | 504 } // namespace blink |
OLD | NEW |