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

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

Issue 7215005: Unittest for webkit bug 62977 Web Inspector: [V8] Tab crashes in chromium after opening inspector on (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Typo fixed Created 9 years, 6 months 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/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
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
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