Commit 5388ab8b authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

[ios] Rename FindInPageWebJSTest file

Bug: 919685
Change-Id: I29969e5029028e7af0c64a4f6089aabc4b884055
Reviewed-on: https://chromium-review.googlesource.com/c/1483260
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635127}
parent 7e548a21
......@@ -460,7 +460,7 @@ source_set("ios_web_web_state_js_unittests") {
"web_state/js/crw_js_injection_manager_unittest.mm",
"web_state/js/crw_js_post_request_loader_unittest.mm",
"web_state/js/crw_js_window_id_manager_unittest.mm",
"web_state/js/find_in_page_unittest.mm",
"web_state/js/find_in_page_js_unittest.mm",
"web_state/js/message_js_unittest.mm",
"web_state/js/page_script_util_unittest.mm",
]
......
......@@ -35,7 +35,7 @@ namespace web {
// Calls FindInPage Javascript handlers and checks that return values are
// correct.
class FindInPageWebJsTest : public WebTestWithWebState {
class FindInPageJsTest : public WebTestWithWebState {
protected:
// Returns WebFramesManager instance.
WebFramesManager* frames_manager() {
......@@ -47,7 +47,7 @@ class FindInPageWebJsTest : public WebTestWithWebState {
// Tests that FindInPage searches in main frame containing a match and responds
// with 1 match.
TEST_F(FindInPageWebJsTest, FindText) {
TEST_F(FindInPageJsTest, FindText) {
ASSERT_TRUE(LoadHtml("<span>foo</span>"));
WaitForCondition(^{
return frames_manager()->GetAllWebFrames().size() == 1;
......@@ -74,7 +74,7 @@ TEST_F(FindInPageWebJsTest, FindText) {
// Tests that FindInPage searches in main frame for text that exists but is
// hidden and responds with 0 matches.
TEST_F(FindInPageWebJsTest, FindTextNoResults) {
TEST_F(FindInPageJsTest, FindTextNoResults) {
ASSERT_TRUE(LoadHtml("<span style='display:none'>foo</span>"));
WaitForCondition(^{
return frames_manager()->GetAllWebFrames().size() == 1;
......@@ -99,7 +99,7 @@ TEST_F(FindInPageWebJsTest, FindTextNoResults) {
// Tests that FindInPage searches in child iframe and asserts that a result was
// found.
TEST_F(FindInPageWebJsTest, FindIFrameText) {
TEST_F(FindInPageJsTest, FindIFrameText) {
// TODO(crbug.com/872818): Remove if check after deprecate iOS 10.
// WebFrame will not have a key on iOS 10, so function cannot be called.
if (@available(iOS 11.0, *)) {
......@@ -138,7 +138,7 @@ TEST_F(FindInPageWebJsTest, FindIFrameText) {
}
// Tests that FindInPage works when searching for white space.
TEST_F(FindInPageWebJsTest, FindWhiteSpace) {
TEST_F(FindInPageJsTest, FindWhiteSpace) {
ASSERT_TRUE(LoadHtml("<span> </span>"));
WaitForCondition(^{
return frames_manager()->GetAllWebFrames().size() == 1;
......@@ -162,7 +162,7 @@ TEST_F(FindInPageWebJsTest, FindWhiteSpace) {
}
// Tests that FindInPage works when match results cover multiple HTML Nodes.
TEST_F(FindInPageWebJsTest, FindAcrossMultipleNodes) {
TEST_F(FindInPageJsTest, FindAcrossMultipleNodes) {
ASSERT_TRUE(
LoadHtml("<p>xx1<span>2</span>3<a>4512345xxx12</a>34<a>5xxx12345xx</p>"));
WaitForCondition(^{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment