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

Side by Side Diff: chrome/browser/devtools/devtools_sanity_browsertest.cc

Issue 2297443002: DevTools: show extension name in console execution context selector. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 RunTest("waitForTestResultsInConsole", std::string()); 988 RunTest("waitForTestResultsInConsole", std::string());
989 } 989 }
990 990
991 // Tests that a content script is in the scripts list. 991 // Tests that a content script is in the scripts list.
992 IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, 992 IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
993 TestContentScriptIsPresent) { 993 TestContentScriptIsPresent) {
994 LoadExtension("simple_content_script"); 994 LoadExtension("simple_content_script");
995 RunTest("testContentScriptIsPresent", kPageWithContentScript); 995 RunTest("testContentScriptIsPresent", kPageWithContentScript);
996 } 996 }
997 997
998 // Tests that console selector shows correct context names.
999 IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
1000 TestConsoleContextNames) {
1001 LoadExtension("simple_content_script");
1002 RunTest("testConsoleContextNames", kPageWithContentScript);
1003 }
1004
998 // Tests that scripts are not duplicated after Scripts Panel switch. 1005 // Tests that scripts are not duplicated after Scripts Panel switch.
999 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, 1006 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest,
1000 TestNoScriptDuplicatesOnPanelSwitch) { 1007 TestNoScriptDuplicatesOnPanelSwitch) {
1001 RunTest("testNoScriptDuplicatesOnPanelSwitch", kDebuggerTestPage); 1008 RunTest("testNoScriptDuplicatesOnPanelSwitch", kDebuggerTestPage);
1002 } 1009 }
1003 1010
1004 // Tests that debugger works correctly if pause event occurs when DevTools 1011 // Tests that debugger works correctly if pause event occurs when DevTools
1005 // frontend is being loaded. 1012 // frontend is being loaded.
1006 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, 1013 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest,
1007 TestPauseWhenLoadingDevTools) { 1014 TestPauseWhenLoadingDevTools) {
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 DevToolsWindowTesting::OpenDevToolsWindowSync(GetInspectedTab(), true); 1447 DevToolsWindowTesting::OpenDevToolsWindowSync(GetInspectedTab(), true);
1441 chrome::DuplicateTab(browser()); 1448 chrome::DuplicateTab(browser());
1442 chrome::SelectPreviousTab(browser()); 1449 chrome::SelectPreviousTab(browser());
1443 ui_test_utils::NavigateToURL(browser(), GURL("about:blank")); 1450 ui_test_utils::NavigateToURL(browser(), GURL("about:blank"));
1444 chrome::GoBack(browser(), CURRENT_TAB); 1451 chrome::GoBack(browser(), CURRENT_TAB);
1445 RunTestFunction(window, "testWindowInitializedOnNavigateBack"); 1452 RunTestFunction(window, "testWindowInitializedOnNavigateBack");
1446 1453
1447 DevToolsWindowTesting::CloseDevToolsWindowSync(window); 1454 DevToolsWindowTesting::CloseDevToolsWindowSync(window);
1448 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory); 1455 content::WebUIControllerFactory::UnregisterFactoryForTesting(&test_factory);
1449 } 1456 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698