Commit 8a1f743f authored by Justin Cohen's avatar Justin Cohen Committed by Commit Bot

Revert "[ios] Disables failing tests in RestoreTestCase."

This reverts commit 79d88adc.

Reason for revert: Fix test.

Original change's description:
> [ios] Disables failing tests in RestoreTestCase.
> 
> These tests are attempting to load an invalid URL that happen to no
> longer be invalid.
> 
> TBR=justincohen@chromium.org
> BUG=1070790
> 
> Change-Id: I03df3f99989b70013e4a047c3636f7e0b5d45fc4
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2148029
> Reviewed-by: Rohit Rao <rohitrao@chromium.org>
> Commit-Queue: Rohit Rao <rohitrao@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#759036}

TBR=rohitrao@chromium.org,justincohen@chromium.org

Change-Id: I31bc8c06a54f2d106e5b040ced6730c8bf4fc121
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 1070790
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2150010Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#759121}
parent 56f22582
......@@ -132,8 +132,7 @@ std::unique_ptr<net::test_server::HttpResponse> CountResponse(
// Navigates to a set of cross-domains, chrome URLs and error pages, and then
// tests that they are properly restored.
// TODO(crbug.com/1070790): Fix loadTestPages with a properly invalid URL.
- (void)DISABLED_testRestoreHistory {
- (void)testRestoreHistory {
[self setUpRestoreServers];
[self loadTestPages];
[self verifyRestoredTestPages:YES];
......@@ -141,8 +140,7 @@ std::unique_ptr<net::test_server::HttpResponse> CountResponse(
// Navigates to a set of cross-domains, chrome URLs and error pages, and then
// tests that they are properly restored in airplane mode.
// TODO(crbug.com/1070790): Fix loadTestPages with a properly invalid URL.
- (void)DISABLED_testRestoreNoNetwork {
- (void)testRestoreNoNetwork {
[self setUpRestoreServers];
[self loadTestPages];
self.serverRespondsWithContent = false;
......@@ -245,7 +243,7 @@ std::unique_ptr<net::test_server::HttpResponse> CountResponse(
[ChromeEarlGrey loadURL:chromePage];
// Load error page.
const GURL errorPage = GURL("http://ndtv1234.com");
const GURL errorPage = GURL("http://invalid.");
[ChromeEarlGrey loadURL:errorPage];
[ChromeEarlGrey waitForWebStateContainingText:"ERR_"];
[[GREYUIThreadExecutor sharedInstance] drainUntilIdle];
......@@ -278,12 +276,12 @@ std::unique_ptr<net::test_server::HttpResponse> CountResponse(
// Go back to error page.
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
[[EarlGrey selectElementWithMatcher:OmniboxText("ndtv1234.com")]
[[EarlGrey selectElementWithMatcher:OmniboxText("invalid.")]
assertWithMatcher:grey_notNil()];
[ChromeEarlGrey waitForWebStateContainingText:"ERR_"];
[[GREYUIThreadExecutor sharedInstance] drainUntilIdle];
[self triggerRestore];
[[EarlGrey selectElementWithMatcher:OmniboxText("ndtv1234.com")]
[[EarlGrey selectElementWithMatcher:OmniboxText("invalid.")]
assertWithMatcher:grey_notNil()];
[ChromeEarlGrey waitForWebStateContainingText:"ERR_"];
[[GREYUIThreadExecutor sharedInstance] drainUntilIdle];
......
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