| 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/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 ui_test_utils::ExecuteJavaScriptAndExtractString( | 428 ui_test_utils::ExecuteJavaScriptAndExtractString( |
| 429 window_->GetRenderViewHost(), | 429 window_->GetRenderViewHost(), |
| 430 L"", | 430 L"", |
| 431 L"window.domAutomationController.send(" | 431 L"window.domAutomationController.send(" |
| 432 L"'' + (window.uiTests && (typeof uiTests.runTest)));", | 432 L"'' + (window.uiTests && (typeof uiTests.runTest)));", |
| 433 &result)); | 433 &result)); |
| 434 ASSERT_EQ("function", result) << "DevTools front-end is broken."; | 434 ASSERT_EQ("function", result) << "DevTools front-end is broken."; |
| 435 CloseDevToolsWindow(); | 435 CloseDevToolsWindow(); |
| 436 } | 436 } |
| 437 | 437 |
| 438 #if defined(OS_WINDOWS) || defined(OS_LINUX) || defined(OS_CHROMEOS) | |
| 439 // Flakily fails: http://crbug.com/89845 | 438 // Flakily fails: http://crbug.com/89845 |
| 440 #define MAYBE_InspectSharedWorker FLAKY_InspectSharedWorker | 439 IN_PROC_BROWSER_TEST_F(WorkerDevToolsSanityTest, FLAKY_InspectSharedWorker) { |
| 441 #else | |
| 442 #define MAYBE_InspectSharedWorker InspectSharedWorker | |
| 443 #endif | |
| 444 IN_PROC_BROWSER_TEST_F(WorkerDevToolsSanityTest, MAYBE_InspectSharedWorker) { | |
| 445 RunTest("testSharedWorker", kSharedWorkerTestPage); | 440 RunTest("testSharedWorker", kSharedWorkerTestPage); |
| 446 } | 441 } |
| 447 | 442 |
| 448 } // namespace | 443 } // namespace |
| OLD | NEW |