OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/browser.h" | 6 #include "chrome/browser/browser.h" |
7 #include "chrome/browser/debugger/devtools_client_host.h" | 7 #include "chrome/browser/debugger/devtools_client_host.h" |
8 #include "chrome/browser/debugger/devtools_manager.h" | 8 #include "chrome/browser/debugger/devtools_manager.h" |
9 #include "chrome/browser/debugger/devtools_window.h" | 9 #include "chrome/browser/debugger/devtools_window.h" |
10 #include "chrome/browser/extensions/extension_host.h" | 10 #include "chrome/browser/extensions/extension_host.h" |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 RunTest("testContentScriptIsPresent", kPageWithContentScript); | 335 RunTest("testContentScriptIsPresent", kPageWithContentScript); |
336 } | 336 } |
337 | 337 |
338 // Tests that scripts are not duplicated after Scripts Panel switch. | 338 // Tests that scripts are not duplicated after Scripts Panel switch. |
339 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, | 339 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, |
340 TestNoScriptDuplicatesOnPanelSwitch) { | 340 TestNoScriptDuplicatesOnPanelSwitch) { |
341 RunTest("testNoScriptDuplicatesOnPanelSwitch", kDebuggerTestPage); | 341 RunTest("testNoScriptDuplicatesOnPanelSwitch", kDebuggerTestPage); |
342 } | 342 } |
343 | 343 |
344 // Tests set breakpoint. | 344 // Tests set breakpoint. |
345 // Flaky, see http://crbug.com/42718 | 345 // Started failing in WebKit roll 58304:58400 http://crbug.com/42718 |
346 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, FLAKY_TestSetBreakpoint) { | 346 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, DISABLED_TestSetBreakpoint) { |
347 RunTest("testSetBreakpoint", kDebuggerTestPage); | 347 RunTest("testSetBreakpoint", kDebuggerTestPage); |
348 } | 348 } |
349 | 349 |
350 // Tests pause on exception. | 350 // Tests pause on exception. |
351 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseOnException) { | 351 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseOnException) { |
352 RunTest("testPauseOnException", kPauseOnExceptionTestPage); | 352 RunTest("testPauseOnException", kPauseOnExceptionTestPage); |
353 } | 353 } |
354 | 354 |
355 // Tests that debugger works correctly if pause event occurs when DevTools | 355 // Tests that debugger works correctly if pause event occurs when DevTools |
356 // frontend is being loaded. | 356 // frontend is being loaded. |
357 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenLoadingDevTools) { | 357 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenLoadingDevTools) { |
358 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); | 358 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); |
359 } | 359 } |
360 | 360 |
361 // Tests that pressing 'Pause' will pause script execution if the script | 361 // Tests that pressing 'Pause' will pause script execution if the script |
362 // is already running. | 362 // is already running. |
363 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { | 363 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { |
364 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); | 364 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); |
365 } | 365 } |
366 | 366 |
367 // Tests eval on call frame. | 367 // Tests eval on call frame. |
368 // Flaky, see http://crbug.com/42718 | 368 // Started failing in WebKit roll 58304:58400 http://crbug.com/42718 |
369 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, FLAKY_TestEvalOnCallFrame) { | 369 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, DISABLED_TestEvalOnCallFrame) { |
370 RunTest("testEvalOnCallFrame", kDebuggerTestPage); | 370 RunTest("testEvalOnCallFrame", kDebuggerTestPage); |
371 } | 371 } |
372 | 372 |
373 // Tests step over functionality in the debugger. | 373 // Tests step over functionality in the debugger. |
374 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestStepOver) { | 374 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestStepOver) { |
375 RunTest("testStepOver", kDebuggerStepTestPage); | 375 RunTest("testStepOver", kDebuggerStepTestPage); |
376 } | 376 } |
377 | 377 |
378 // Tests step out functionality in the debugger. | 378 // Tests step out functionality in the debugger. |
379 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestStepOut) { | 379 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestStepOut) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 RunTest("testEvalGlobal", kEvalTestPage); | 426 RunTest("testEvalGlobal", kEvalTestPage); |
427 } | 427 } |
428 | 428 |
429 // Test that Storage panel can be shown. | 429 // Test that Storage panel can be shown. |
430 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowStoragePanel) { | 430 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowStoragePanel) { |
431 RunTest("testShowStoragePanel", kDebuggerTestPage); | 431 RunTest("testShowStoragePanel", kDebuggerTestPage); |
432 } | 432 } |
433 | 433 |
434 | 434 |
435 } // namespace | 435 } // namespace |
OLD | NEW |