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_client_host.h" | 9 #include "chrome/browser/debugger/devtools_client_host.h" |
10 #include "chrome/browser/debugger/devtools_manager.h" | 10 #include "chrome/browser/debugger/devtools_manager.h" |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
305 // Tests raw headers text. | 305 // Tests raw headers text. |
306 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestNetworkSyncSize) { | 306 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestNetworkSyncSize) { |
307 RunTest("testNetworkSyncSize", kChunkedTestPage); | 307 RunTest("testNetworkSyncSize", kChunkedTestPage); |
308 } | 308 } |
309 | 309 |
310 // Tests raw headers text. | 310 // Tests raw headers text. |
311 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestNetworkRawHeadersText) { | 311 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestNetworkRawHeadersText) { |
312 RunTest("testNetworkRawHeadersText", kChunkedTestPage); | 312 RunTest("testNetworkRawHeadersText", kChunkedTestPage); |
313 } | 313 } |
314 | 314 |
315 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPageWithNoJavaScript) { | |
316 OpenDevToolsWindow("about:blank"); | |
317 std::string result; | |
318 ASSERT_TRUE( | |
319 ui_test_utils::ExecuteJavaScriptAndExtractString( | |
yurys
2011/06/21 09:48:16
style nit: wrong alignment
| |
320 client_contents_->render_view_host(), | |
321 L"", | |
322 L"window.domAutomationController.send(" | |
323 L"'' + (window.uiTests && (typeof uiTests.runTest)));", | |
324 &result)); | |
325 ASSERT_EQ("function", result) << "DevTools front-end is broken."; | |
326 CloseDevToolsWindow(); | |
327 } | |
328 | |
315 } // namespace | 329 } // namespace |
OLD | NEW |