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

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

Issue 8678003: Disable InspectSharedWorker/PauseInSharedWorkerInitialization that times out. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | 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) 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/command_line.h" 6 #include "base/command_line.h"
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/test/test_timeouts.h" 10 #include "base/test/test_timeouts.h"
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 ui_test_utils::ExecuteJavaScriptAndExtractString( 531 ui_test_utils::ExecuteJavaScriptAndExtractString(
532 window_->GetRenderViewHost(), 532 window_->GetRenderViewHost(),
533 L"", 533 L"",
534 L"window.domAutomationController.send(" 534 L"window.domAutomationController.send("
535 L"'' + (window.uiTests && (typeof uiTests.runTest)));", 535 L"'' + (window.uiTests && (typeof uiTests.runTest)));",
536 &result)); 536 &result));
537 ASSERT_EQ("function", result) << "DevTools front-end is broken."; 537 ASSERT_EQ("function", result) << "DevTools front-end is broken.";
538 CloseDevToolsWindow(); 538 CloseDevToolsWindow();
539 } 539 }
540 540
541 #if defined(OS_MACOSX) 541 #if defined(OS_MACOSX) || defined(OS_CHROMEOS)
542 #define MAYBE_InspectSharedWorker DISABLED_InspectSharedWorker 542 #define MAYBE_InspectSharedWorker DISABLED_InspectSharedWorker
543 #else 543 #else
544 #define MAYBE_InspectSharedWorker FAILS_InspectSharedWorker 544 #define MAYBE_InspectSharedWorker FAILS_InspectSharedWorker
545 #endif 545 #endif
546 // Flakily fails with 25s timeout: http://crbug.com/89845 546 // Flakily fails with 25s timeout: http://crbug.com/89845
547 IN_PROC_BROWSER_TEST_F(WorkerDevToolsSanityTest, MAYBE_InspectSharedWorker) { 547 IN_PROC_BROWSER_TEST_F(WorkerDevToolsSanityTest, MAYBE_InspectSharedWorker) {
548 RunTest("testSharedWorker", kSharedWorkerTestPage); 548 RunTest("testSharedWorker", kSharedWorkerTestPage);
549 } 549 }
550 550
551 // http://crbug.com/100538 551 // http://crbug.com/100538
552 #if defined(OS_MACOSX) 552 #if defined(OS_MACOSX) || defined(OS_CHROMEOS)
553 #define MAYBE_PauseInSharedWorkerInitialization DISABLED_PauseInSharedWorkerInit ialization 553 #define MAYBE_PauseInSharedWorkerInitialization DISABLED_PauseInSharedWorkerInit ialization
554 #else 554 #else
555 #define MAYBE_PauseInSharedWorkerInitialization FAILS_PauseInSharedWorkerInitial ization 555 #define MAYBE_PauseInSharedWorkerInitialization FAILS_PauseInSharedWorkerInitial ization
556 #endif 556 #endif
557 // See http://crbug.com/100538 557 // See http://crbug.com/100538
558 IN_PROC_BROWSER_TEST_F(WorkerDevToolsSanityTest, 558 IN_PROC_BROWSER_TEST_F(WorkerDevToolsSanityTest,
559 MAYBE_PauseInSharedWorkerInitialization) { 559 MAYBE_PauseInSharedWorkerInitialization) {
560 ASSERT_TRUE(test_server()->Start()); 560 ASSERT_TRUE(test_server()->Start());
561 GURL url = test_server()->GetURL(kReloadSharedWorkerTestPage); 561 GURL url = test_server()->GetURL(kReloadSharedWorkerTestPage);
562 ui_test_utils::NavigateToURL(browser(), url); 562 ui_test_utils::NavigateToURL(browser(), url);
563 563
564 scoped_refptr<WorkerData> worker_data = WaitForFirstSharedWorker(); 564 scoped_refptr<WorkerData> worker_data = WaitForFirstSharedWorker();
565 OpenDevToolsWindowForSharedWorker(worker_data.get()); 565 OpenDevToolsWindowForSharedWorker(worker_data.get());
566 566
567 TerminateWorker(worker_data); 567 TerminateWorker(worker_data);
568 568
569 // Reload page to restart the worker. 569 // Reload page to restart the worker.
570 ui_test_utils::NavigateToURL(browser(), url); 570 ui_test_utils::NavigateToURL(browser(), url);
571 571
572 // Wait until worker script is paused on the debugger statement. 572 // Wait until worker script is paused on the debugger statement.
573 RunTestFuntion(window_, "testPauseInSharedWorkerInitialization"); 573 RunTestFuntion(window_, "testPauseInSharedWorkerInitialization");
574 CloseDevToolsWindow(); 574 CloseDevToolsWindow();
575 } 575 }
576 576
577 } // namespace 577 } // namespace
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698