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

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

Issue 438843002: Delete code for inspector preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged. Created 6 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
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/cancelable_callback.h" 6 #include "base/cancelable_callback.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowScriptsTab) { 680 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowScriptsTab) {
681 RunTest("testShowScriptsTab", kDebuggerTestPage); 681 RunTest("testShowScriptsTab", kDebuggerTestPage);
682 } 682 }
683 683
684 // Tests that scripts tab is populated with inspected scripts even if it 684 // Tests that scripts tab is populated with inspected scripts even if it
685 // hadn't been shown by the moment inspected paged refreshed. 685 // hadn't been shown by the moment inspected paged refreshed.
686 // @see http://crbug.com/26312 686 // @see http://crbug.com/26312
687 IN_PROC_BROWSER_TEST_F( 687 IN_PROC_BROWSER_TEST_F(
688 DevToolsSanityTest, 688 DevToolsSanityTest,
689 TestScriptsTabIsPopulatedOnInspectedPageRefresh) { 689 TestScriptsTabIsPopulatedOnInspectedPageRefresh) {
690 // Clear inspector settings to ensure that Elements will be
691 // current panel when DevTools window is open.
692 content::BrowserContext* browser_context =
693 GetInspectedTab()->GetBrowserContext();
694 Profile::FromBrowserContext(browser_context)->GetPrefs()->
695 ClearPref(prefs::kWebKitInspectorSettings);
696
697 RunTest("testScriptsTabIsPopulatedOnInspectedPageRefresh", 690 RunTest("testScriptsTabIsPopulatedOnInspectedPageRefresh",
698 kDebuggerTestPage); 691 kDebuggerTestPage);
699 } 692 }
700 693
701 // Tests that chrome.devtools extension is correctly exposed. 694 // Tests that chrome.devtools extension is correctly exposed.
702 IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest, 695 IN_PROC_BROWSER_TEST_F(DevToolsExtensionTest,
703 TestDevToolsExtensionAPI) { 696 TestDevToolsExtensionAPI) {
704 LoadExtension("devtools_extension"); 697 LoadExtension("devtools_extension");
705 RunTest("waitForTestResultsInConsole", std::string()); 698 RunTest("waitForTestResultsInConsole", std::string());
706 } 699 }
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 910
918 IN_PROC_BROWSER_TEST_F(RemoteDebuggingTest, RemoteDebugger) { 911 IN_PROC_BROWSER_TEST_F(RemoteDebuggingTest, RemoteDebugger) {
919 #if defined(OS_WIN) && defined(USE_ASH) 912 #if defined(OS_WIN) && defined(USE_ASH)
920 // Disable this test in Metro+Ash for now (http://crbug.com/262796). 913 // Disable this test in Metro+Ash for now (http://crbug.com/262796).
921 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) 914 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests))
922 return; 915 return;
923 #endif 916 #endif
924 917
925 ASSERT_TRUE(RunExtensionTest("target_list")) << message_; 918 ASSERT_TRUE(RunExtensionTest("target_list")) << message_;
926 } 919 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698