Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: ios/chrome/browser/web/window_open_by_dom_egtest.mm

Issue 2914193003: Automated test case for crbug.com/687863. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/testing/data/http_server_files/window_open.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/window_open_by_dom_egtest.mm
diff --git a/ios/chrome/browser/web/window_open_by_dom_egtest.mm b/ios/chrome/browser/web/window_open_by_dom_egtest.mm
index 077be28f1b4a967db8cf13c66b1f09fe081429ab..631be43519c5907f3feaaa69e71f93c06530ff31 100644
--- a/ios/chrome/browser/web/window_open_by_dom_egtest.mm
+++ b/ios/chrome/browser/web/window_open_by_dom_egtest.mm
@@ -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">
baxley 2017/06/01 21:15:02 Is this comment too descriptive? Would it be bette
Eugene But (OOO till 7-30) 2017/06/01 23:24:57 I agree it would be better if these tests used inl
baxley 2017/06/01 23:40:15 No. Anything I suggest would make it less concrete
+// 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");
« no previous file with comments | « no previous file | ios/testing/data/http_server_files/window_open.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698