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 // http://crbug.com/106114 | |
456 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, | 455 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, |
457 DISABLED_TestPauseWhenLoadingDevTools) { | 456 TestPauseWhenLoadingDevTools) { |
458 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); | 457 RunTest("testPauseWhenLoadingDevTools", kPauseWhenLoadingDevTools); |
459 } | 458 } |
460 | 459 |
461 // Tests that pressing 'Pause' will pause script execution if the script | 460 // Tests that pressing 'Pause' will pause script execution if the script |
462 // is already running. | 461 // is already running. |
463 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { | 462 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPauseWhenScriptIsRunning) { |
464 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); | 463 RunTest("testPauseWhenScriptIsRunning", kPauseWhenScriptIsRunning); |
465 } | 464 } |
466 | 465 |
467 // Tests network timing. | 466 // Tests network timing. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 // http://crbug.com/100538 | 536 // http://crbug.com/100538 |
538 #if defined(OS_MACOSX) | 537 #if defined(OS_MACOSX) |
539 #define MAYBE_PauseInSharedWorkerInitialization DISABLED_PauseInSharedWorkerInit
ialization | 538 #define MAYBE_PauseInSharedWorkerInitialization DISABLED_PauseInSharedWorkerInit
ialization |
540 #elif defined(OS_WIN) | 539 #elif defined(OS_WIN) |
541 #define MAYBE_PauseInSharedWorkerInitialization FLAKY_PauseInSharedWorkerInitial
ization | 540 #define MAYBE_PauseInSharedWorkerInitialization FLAKY_PauseInSharedWorkerInitial
ization |
542 #else | 541 #else |
543 #define MAYBE_PauseInSharedWorkerInitialization PauseInSharedWorkerInitializatio
n | 542 #define MAYBE_PauseInSharedWorkerInitialization PauseInSharedWorkerInitializatio
n |
544 #endif | 543 #endif |
545 // See http://crbug.com/100538 | 544 // See http://crbug.com/100538 |
546 | 545 |
547 // http://crbug.com/106114 is masking | |
548 // MAYBE_PauseInSharedWorkerInitialization into | |
549 // DISABLED_PauseInSharedWorkerInitialization | |
550 IN_PROC_BROWSER_TEST_F(WorkerDevToolsSanityTest, | 546 IN_PROC_BROWSER_TEST_F(WorkerDevToolsSanityTest, |
551 DISABLED_PauseInSharedWorkerInitialization) { | 547 MAYBE_PauseInSharedWorkerInitialization) { |
552 ASSERT_TRUE(test_server()->Start()); | 548 ASSERT_TRUE(test_server()->Start()); |
553 GURL url = test_server()->GetURL(kReloadSharedWorkerTestPage); | 549 GURL url = test_server()->GetURL(kReloadSharedWorkerTestPage); |
554 ui_test_utils::NavigateToURL(browser(), url); | 550 ui_test_utils::NavigateToURL(browser(), url); |
555 | 551 |
556 scoped_refptr<WorkerData> worker_data = WaitForFirstSharedWorker(); | 552 scoped_refptr<WorkerData> worker_data = WaitForFirstSharedWorker(); |
557 OpenDevToolsWindowForSharedWorker(worker_data.get()); | 553 OpenDevToolsWindowForSharedWorker(worker_data.get()); |
558 | 554 |
559 TerminateWorker(worker_data); | 555 TerminateWorker(worker_data); |
560 | 556 |
561 // Reload page to restart the worker. | 557 // Reload page to restart the worker. |
562 ui_test_utils::NavigateToURL(browser(), url); | 558 ui_test_utils::NavigateToURL(browser(), url); |
563 | 559 |
564 // Wait until worker script is paused on the debugger statement. | 560 // Wait until worker script is paused on the debugger statement. |
565 RunTestFuntion(window_, "testPauseInSharedWorkerInitialization"); | 561 RunTestFuntion(window_, "testPauseInSharedWorkerInitialization"); |
566 CloseDevToolsWindow(); | 562 CloseDevToolsWindow(); |
567 } | 563 } |
568 | 564 |
569 } // namespace | 565 } // namespace |
OLD | NEW |