Commit 5d7987da authored by Alexey Kozyatinskiy's avatar Alexey Kozyatinskiy Committed by Commit Bot

[DevTools] reenabled testOnPageFinishedCalledOnDomModificationAfterNavigation

TBR=dgozman@chromium.org

Bug: chromium:712937
Change-Id: I33ec4f3e9fa0ded7288a4f84d41963c4577da24d
Reviewed-on: https://chromium-review.googlesource.com/848316Reviewed-by: default avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526567}
parent 7061d967
......@@ -18,7 +18,6 @@ import org.chromium.android_webview.AwContents;
import org.chromium.android_webview.test.AwActivityTestRule.PopupInfo;
import org.chromium.android_webview.test.util.CommonResources;
import org.chromium.base.ThreadUtils;
import org.chromium.base.test.util.DisabledTest;
import org.chromium.base.test.util.Feature;
import org.chromium.base.test.util.RetryOnFailure;
import org.chromium.content.browser.ContentViewCore;
......@@ -81,14 +80,15 @@ public class PopupWindowTest {
}
@Test
@DisabledTest
@SmallTest
@Feature({"AndroidWebView"})
public void testOnPageFinishedCalledOnDomModificationAfterNavigation() throws Throwable {
final String popupPath = "/popup.html";
final String parentPageHtml = CommonResources.makeHtmlPageFrom("", "<script>"
final String parentPageHtml = CommonResources.makeHtmlPageFrom("",
"<script>"
+ "function tryOpenWindow() {"
+ " window.popupWindow = window.open('" + popupPath + "');"
+ " window.popupWindow.console = {};"
+ "}"
+ "function modifyDomOfPopup() {"
+ " window.popupWindow.document.body.innerHTML = 'Hello from the parent!';"
......
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