| 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 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestSetBreakpoint) { | 345 // Flaky, see http://crbug.com/42718 |
| 346 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, FLAKY_TestSetBreakpoint) { |
| 346 RunTest("testSetBreakpoint", kDebuggerTestPage); | 347 RunTest("testSetBreakpoint", kDebuggerTestPage); |
| 347 } | 348 } |
| 348 | 349 |
| 349 // Tests pause on exception. | 350 // Tests pause on exception. |
| 350 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseOnException) { | 351 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseOnException) { |
| 351 RunTest("testPauseOnException", kPauseOnExceptionTestPage); | 352 RunTest("testPauseOnException", kPauseOnExceptionTestPage); |
| 352 } | 353 } |
| 353 | 354 |
| 354 // Tests that debugger works correctly if pause event occurs when DevTools | 355 // Tests that debugger works correctly if pause event occurs when DevTools |
| 355 // frontend is being loaded. | 356 // frontend is being loaded. |
| 356 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenLoadingDevTools) { | 357 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenLoadingDevTools) { |
| 357 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); | 358 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); |
| 358 } | 359 } |
| 359 | 360 |
| 360 // Tests that pressing 'Pause' will pause script execution if the script | 361 // Tests that pressing 'Pause' will pause script execution if the script |
| 361 // is already running. | 362 // is already running. |
| 362 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { | 363 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { |
| 363 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); | 364 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); |
| 364 } | 365 } |
| 365 | 366 |
| 366 // Tests eval on call frame. | 367 // Tests eval on call frame. |
| 367 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestEvalOnCallFrame) { | 368 // Flaky, see http://crbug.com/42718 |
| 369 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, FLAKY_TestEvalOnCallFrame) { |
| 368 RunTest("testEvalOnCallFrame", kDebuggerTestPage); | 370 RunTest("testEvalOnCallFrame", kDebuggerTestPage); |
| 369 } | 371 } |
| 370 | 372 |
| 371 // Tests step over functionality in the debugger. | 373 // Tests step over functionality in the debugger. |
| 372 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestStepOver) { | 374 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestStepOver) { |
| 373 RunTest("testStepOver", kDebuggerStepTestPage); | 375 RunTest("testStepOver", kDebuggerStepTestPage); |
| 374 } | 376 } |
| 375 | 377 |
| 376 // Tests step out functionality in the debugger. | 378 // Tests step out functionality in the debugger. |
| 377 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... |
| 424 RunTest("testEvalGlobal", kEvalTestPage); | 426 RunTest("testEvalGlobal", kEvalTestPage); |
| 425 } | 427 } |
| 426 | 428 |
| 427 // Test that Storage panel can be shown. | 429 // Test that Storage panel can be shown. |
| 428 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowStoragePanel) { | 430 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestShowStoragePanel) { |
| 429 RunTest("testShowStoragePanel", kDebuggerTestPage); | 431 RunTest("testShowStoragePanel", kDebuggerTestPage); |
| 430 } | 432 } |
| 431 | 433 |
| 432 | 434 |
| 433 } // namespace | 435 } // namespace |
| OLD | NEW |