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

Side by Side Diff: chrome/browser/extensions/window_open_apitest.cc

Issue 7497024: Add a test for the workaround for bug 89967. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/window_open/opener/check-opener.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/command_line.h" 5 #include "base/command_line.h"
6 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_list.h" 8 #include "chrome/browser/ui/browser_list.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/test/ui_test_utils.h" 10 #include "chrome/test/ui_test_utils.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 virtual void SetUpCommandLine(CommandLine* command_line) { 164 virtual void SetUpCommandLine(CommandLine* command_line) {
165 ExtensionApiTest::SetUpCommandLine(command_line); 165 ExtensionApiTest::SetUpCommandLine(command_line);
166 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); 166 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
167 command_line->AppendSwitch(switches::kEnablePanels); 167 command_line->AppendSwitch(switches::kEnablePanels);
168 } 168 }
169 }; 169 };
170 170
171 IN_PROC_BROWSER_TEST_F(WindowOpenPanelTest, WindowOpenPanel) { 171 IN_PROC_BROWSER_TEST_F(WindowOpenPanelTest, WindowOpenPanel) {
172 ASSERT_TRUE(RunExtensionTest("window_open/panel")) << message_; 172 ASSERT_TRUE(RunExtensionTest("window_open/panel")) << message_;
173 } 173 }
174
175 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, WindowOpener) {
176 ASSERT_TRUE(RunExtensionTest("window_open/opener")) << message_;
177 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/window_open/opener/check-opener.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698