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

Side by Side Diff: chrome/browser/debugger/devtools_sanity_unittest.cc

Issue 6338006: WebKit roll 75765:75812. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added Win to disabel condition Created 9 years, 11 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 | « DEPS ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/path_service.h" 6 #include "base/path_service.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/debugger/devtools_client_host.h" 9 #include "chrome/browser/debugger/devtools_client_host.h"
10 #include "chrome/browser/debugger/devtools_manager.h" 10 #include "chrome/browser/debugger/devtools_manager.h"
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // Tests heap profiler. 281 // Tests heap profiler.
282 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestHeapProfiler) { 282 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestHeapProfiler) {
283 RunTest("testHeapProfiler", kHeapProfilerPage); 283 RunTest("testHeapProfiler", kHeapProfilerPage);
284 } 284 }
285 285
286 // Tests scripts panel showing. 286 // Tests scripts panel showing.
287 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowScriptsTab) { 287 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowScriptsTab) {
288 RunTest("testShowScriptsTab", kDebuggerTestPage); 288 RunTest("testShowScriptsTab", kDebuggerTestPage);
289 } 289 }
290 290
291 // Fails after WebKit roll 75765:75812 (likely 75791), http://crbug.com/69719
292 #if defined(OS_LINUX) || defined(OS_WIN)
293 #define MAYBE_TestScriptsTabIsPopulatedOnInspectedPageRefresh \
294 FAILS_TestScriptsTabIsPopulatedOnInspectedPageRefresh
295 #else
296 #define MAYBE_TestScriptsTabIsPopulatedOnInspectedPageRefresh \
297 TestScriptsTabIsPopulatedOnInspectedPageRefresh
298 #endif // defined(OS_LINUX) || defined(OS_WIN)
291 // Tests that scripts tab is populated with inspected scripts even if it 299 // Tests that scripts tab is populated with inspected scripts even if it
292 // hadn't been shown by the moment inspected paged refreshed. 300 // hadn't been shown by the moment inspected paged refreshed.
293 // @see http://crbug.com/26312 301 // @see http://crbug.com/26312
294 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, 302 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest,
295 TestScriptsTabIsPopulatedOnInspectedPageRefresh) { 303 MAYBE_TestScriptsTabIsPopulatedOnInspectedPageRefresh) {
296 // Clear inspector settings to ensure that Elements will be 304 // Clear inspector settings to ensure that Elements will be
297 // current panel when DevTools window is open. 305 // current panel when DevTools window is open.
298 GetInspectedTab()->render_view_host()->delegate()->ClearInspectorSettings(); 306 GetInspectedTab()->render_view_host()->delegate()->ClearInspectorSettings();
299 RunTest("testScriptsTabIsPopulatedOnInspectedPageRefresh", 307 RunTest("testScriptsTabIsPopulatedOnInspectedPageRefresh",
300 kDebuggerTestPage); 308 kDebuggerTestPage);
301 } 309 }
302 310
303 // Tests that a content script is in the scripts list. 311 // Tests that a content script is in the scripts list.
304 // This test is disabled, see bug 28961. 312 // This test is disabled, see bug 28961.
305 IN_PROC_BROWSER_TEST_F(DevToolsExtensionDebugTest, 313 IN_PROC_BROWSER_TEST_F(DevToolsExtensionDebugTest,
306 TestContentScriptIsPresent) { 314 TestContentScriptIsPresent) {
307 LoadExtension("simple_content_script"); 315 LoadExtension("simple_content_script");
308 RunTest("testContentScriptIsPresent", kPageWithContentScript); 316 RunTest("testContentScriptIsPresent", kPageWithContentScript);
309 } 317 }
310 318
311 // Tests that scripts are not duplicated after Scripts Panel switch. 319 // Tests that scripts are not duplicated after Scripts Panel switch.
312 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, 320 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest,
313 TestNoScriptDuplicatesOnPanelSwitch) { 321 TestNoScriptDuplicatesOnPanelSwitch) {
314 RunTest("testNoScriptDuplicatesOnPanelSwitch", kDebuggerTestPage); 322 RunTest("testNoScriptDuplicatesOnPanelSwitch", kDebuggerTestPage);
315 } 323 }
316 324
325 // Fails after WebKit roll 75765:75812 (likely 75791), http://crbug.com/69719
326 #if defined(OS_LINUX) || defined(OS_WIN)
327 #define MAYBE_TestPauseWhenLoadingDevTools FAILS_TestPauseWhenLoadingDevTools
328 #else
329 #define MAYBE_TestPauseWhenLoadingDevTools TestPauseWhenLoadingDevTools
330 #endif // defined(OS_LINUX) || defined(OS_WIN)
317 // Tests that debugger works correctly if pause event occurs when DevTools 331 // Tests that debugger works correctly if pause event occurs when DevTools
318 // frontend is being loaded. 332 // frontend is being loaded.
319 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenLoadingDevTools) { 333 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, MAYBE_TestPauseWhenLoadingDevTools) {
320 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); 334 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools);
321 } 335 }
322 336
337 // Fails after WebKit roll 75765:75812 (likely 75791), http://crbug.com/69719
338 #if defined(OS_LINUX) || defined(OS_WIN)
339 #define MAYBE_TestPauseWhenScriptIsRunning FAILS_TestPauseWhenScriptIsRunning
340 #else
341 #define MAYBE_TestPauseWhenScriptIsRunning TestPauseWhenScriptIsRunning
342 #endif // defined(OS_LINUX) || defined(OS_WIN)
323 // Tests that pressing 'Pause' will pause script execution if the script 343 // Tests that pressing 'Pause' will pause script execution if the script
324 // is already running. 344 // is already running.
325 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { 345 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, MAYBE_TestPauseWhenScriptIsRunning) {
326 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); 346 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning);
327 } 347 }
328 348
329 // Fails after WebKit roll 66724:66804, http://crbug.com/54592 349 // Fails after WebKit roll 66724:66804, http://crbug.com/54592
330 #if defined(OS_LINUX) || defined(OS_WIN) 350 #if defined(OS_LINUX) || defined(OS_WIN)
331 #define MAYBE_TestCompletionOnPause FAILS_TestCompletionOnPause 351 #define MAYBE_TestCompletionOnPause FAILS_TestCompletionOnPause
332 #else 352 #else
333 #define MAYBE_TestCompletionOnPause TestCompletionOnPause 353 #define MAYBE_TestCompletionOnPause TestCompletionOnPause
334 #endif // defined(OS_LINUX) || defined(OS_WIN) 354 #endif // defined(OS_LINUX) || defined(OS_WIN)
335 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, MAYBE_TestCompletionOnPause) { 355 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, MAYBE_TestCompletionOnPause) {
336 RunTest("testCompletionOnPause", kCompletionOnPause); 356 RunTest("testCompletionOnPause", kCompletionOnPause);
337 } 357 }
338 358
339 // Tests that 'Pause' button works for eval. 359 // Tests that 'Pause' button works for eval.
340 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, DISABLED_TestPauseInEval) { 360 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, DISABLED_TestPauseInEval) {
341 RunTest("testPauseInEval", kDebuggerTestPage); 361 RunTest("testPauseInEval", kDebuggerTestPage);
342 } 362 }
343 363
344 } // namespace 364 } // namespace
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698