Commit 2bfd0fd3 authored by eugenebut's avatar eugenebut Committed by Commit Bot

Automated test case for crbug.com/687863.

BUG=687863

Review-Url: https://codereview.chromium.org/2914193003
Cr-Commit-Position: refs/heads/master@{#476502}
parent 90cf9d72
......@@ -200,6 +200,17 @@ NSString* GetBlockedPopupInfobarText(size_t blocked_count) {
assertWithMatcher:grey_notNil()];
}
// Tests opening a child window using the following link
// <a href="data:text/html,<script>window.location='about:newtab';</script>"
// target="_blank">
// TODO(crbug.com/687863): Enable this test.
- (void)DISABLED_testWindowOpenWithAboutNewTabScript {
TapWebViewElementWithId("webScenarioWindowOpenWithAboutNewTabScript");
AssertMainTabCount(2);
[[EarlGrey selectElementWithMatcher:OmniboxText("about:newtab")]
assertWithMatcher:grey_notNil()];
}
// Tests that closing the current window using DOM fails.
- (void)testCloseWindowNotOpenByDOM {
TapWebViewElementWithId("webScenarioWindowClose");
......
......@@ -128,6 +128,18 @@ found in the LICENSE file. -->
<td>about:blank opened in a new window, with an href and a preventDefault<br></td>
</tr>
<tr id="_webScenarioWindowOpenWithAboutNewTabScript">
<td>
<a href="data:text/html,<script>window.location='about:newtab';</script>"
target="_blank"
name="webScenarioWindowOpenWithAboutNewTabScript"
id="webScenarioWindowOpenWithAboutNewTabScript">
webScenarioWindowOpenWithAboutNewTabScript
</a>
</td>
<td>about:blank opened in a new window, using "window.location='about:newtab" script<br></td>
</tr>
<tr id="_webScenarioWindowOpenAndSetLocation">
<td>
<script>
......
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