OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 } | 445 } |
446 | 446 |
447 // Tests that scripts are not duplicated after Scripts Panel switch. | 447 // Tests that scripts are not duplicated after Scripts Panel switch. |
448 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, | 448 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, |
449 TestNoScriptDuplicatesOnPanelSwitch) { | 449 TestNoScriptDuplicatesOnPanelSwitch) { |
450 RunTest("testNoScriptDuplicatesOnPanelSwitch", kDebuggerTestPage); | 450 RunTest("testNoScriptDuplicatesOnPanelSwitch", kDebuggerTestPage); |
451 } | 451 } |
452 | 452 |
453 // Tests that debugger works correctly if pause event occurs when DevTools | 453 // Tests that debugger works correctly if pause event occurs when DevTools |
454 // frontend is being loaded. | 454 // frontend is being loaded. |
455 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenLoadingDevTools) { | 455 // http://crbug.com/106114 |
| 456 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, |
| 457 DISABLED_TestPauseWhenLoadingDevTools) { |
456 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); | 458 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); |
457 } | 459 } |
458 | 460 |
459 // Tests that pressing 'Pause' will pause script execution if the script | 461 // Tests that pressing 'Pause' will pause script execution if the script |
460 // is already running. | 462 // is already running. |
461 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { | 463 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { |
462 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); | 464 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); |
463 } | 465 } |
464 | 466 |
465 // Tests network timing. | 467 // Tests network timing. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 | 536 |
535 // http://crbug.com/100538 | 537 // http://crbug.com/100538 |
536 #if defined(OS_MACOSX) | 538 #if defined(OS_MACOSX) |
537 #define MAYBE_PauseInSharedWorkerInitialization DISABLED_PauseInSharedWorkerInit
ialization | 539 #define MAYBE_PauseInSharedWorkerInitialization DISABLED_PauseInSharedWorkerInit
ialization |
538 #elif defined(OS_WIN) | 540 #elif defined(OS_WIN) |
539 #define MAYBE_PauseInSharedWorkerInitialization FLAKY_PauseInSharedWorkerInitial
ization | 541 #define MAYBE_PauseInSharedWorkerInitialization FLAKY_PauseInSharedWorkerInitial
ization |
540 #else | 542 #else |
541 #define MAYBE_PauseInSharedWorkerInitialization PauseInSharedWorkerInitializatio
n | 543 #define MAYBE_PauseInSharedWorkerInitialization PauseInSharedWorkerInitializatio
n |
542 #endif | 544 #endif |
543 // See http://crbug.com/100538 | 545 // See http://crbug.com/100538 |
| 546 |
| 547 // http://crbug.com/106114 is masking |
| 548 // MAYBE_PauseInSharedWorkerInitialization into |
| 549 // DISABLED_PauseInSharedWorkerInitialization |
544 IN_PROC_BROWSER_TEST_F(WorkerDevToolsSanityTest, | 550 IN_PROC_BROWSER_TEST_F(WorkerDevToolsSanityTest, |
545 MAYBE_PauseInSharedWorkerInitialization) { | 551 DISABLED_PauseInSharedWorkerInitialization) { |
546 ASSERT_TRUE(test_server()->Start()); | 552 ASSERT_TRUE(test_server()->Start()); |
547 GURL url = test_server()->GetURL(kReloadSharedWorkerTestPage); | 553 GURL url = test_server()->GetURL(kReloadSharedWorkerTestPage); |
548 ui_test_utils::NavigateToURL(browser(), url); | 554 ui_test_utils::NavigateToURL(browser(), url); |
549 | 555 |
550 scoped_refptr<WorkerData> worker_data = WaitForFirstSharedWorker(); | 556 scoped_refptr<WorkerData> worker_data = WaitForFirstSharedWorker(); |
551 OpenDevToolsWindowForSharedWorker(worker_data.get()); | 557 OpenDevToolsWindowForSharedWorker(worker_data.get()); |
552 | 558 |
553 TerminateWorker(worker_data); | 559 TerminateWorker(worker_data); |
554 | 560 |
555 // Reload page to restart the worker. | 561 // Reload page to restart the worker. |
556 ui_test_utils::NavigateToURL(browser(), url); | 562 ui_test_utils::NavigateToURL(browser(), url); |
557 | 563 |
558 // Wait until worker script is paused on the debugger statement. | 564 // Wait until worker script is paused on the debugger statement. |
559 RunTestFuntion(window_, "testPauseInSharedWorkerInitialization"); | 565 RunTestFuntion(window_, "testPauseInSharedWorkerInitialization"); |
560 CloseDevToolsWindow(); | 566 CloseDevToolsWindow(); |
561 } | 567 } |
562 | 568 |
563 } // namespace | 569 } // namespace |
OLD | NEW |