| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/browser.h" | 6 #include "chrome/browser/browser.h" |
| 7 #include "chrome/browser/debugger/devtools_client_host.h" | 7 #include "chrome/browser/debugger/devtools_client_host.h" |
| 8 #include "chrome/browser/debugger/devtools_manager.h" | 8 #include "chrome/browser/debugger/devtools_manager.h" |
| 9 #include "chrome/browser/debugger/devtools_window.h" | 9 #include "chrome/browser/debugger/devtools_window.h" |
| 10 #include "chrome/browser/extensions/extensions_service.h" | 10 #include "chrome/browser/extensions/extensions_service.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 // The delay waited in some cases where we don't have a notifications for an | 44 // The delay waited in some cases where we don't have a notifications for an |
| 45 // action we take. | 45 // action we take. |
| 46 const int kActionDelayMs = 500; | 46 const int kActionDelayMs = 500; |
| 47 | 47 |
| 48 const wchar_t kConsoleTestPage[] = L"files/devtools/console_test_page.html"; | 48 const wchar_t kConsoleTestPage[] = L"files/devtools/console_test_page.html"; |
| 49 const wchar_t kDebuggerTestPage[] = L"files/devtools/debugger_test_page.html"; | 49 const wchar_t kDebuggerTestPage[] = L"files/devtools/debugger_test_page.html"; |
| 50 const wchar_t kEvalTestPage[] = L"files/devtools/eval_test_page.html"; | 50 const wchar_t kEvalTestPage[] = L"files/devtools/eval_test_page.html"; |
| 51 const wchar_t kJsPage[] = L"files/devtools/js_page.html"; | 51 const wchar_t kJsPage[] = L"files/devtools/js_page.html"; |
| 52 const wchar_t kResourceContentLengthTestPage[] = L"files/devtools/image.html"; |
| 52 const wchar_t kResourceTestPage[] = L"files/devtools/resource_test_page.html"; | 53 const wchar_t kResourceTestPage[] = L"files/devtools/resource_test_page.html"; |
| 53 const wchar_t kSimplePage[] = L"files/devtools/simple_page.html"; | 54 const wchar_t kSimplePage[] = L"files/devtools/simple_page.html"; |
| 54 const wchar_t kSyntaxErrorTestPage[] = | 55 const wchar_t kSyntaxErrorTestPage[] = |
| 55 L"files/devtools/script_syntax_error.html"; | 56 L"files/devtools/script_syntax_error.html"; |
| 56 const wchar_t kDebuggerStepTestPage[] = | 57 const wchar_t kDebuggerStepTestPage[] = |
| 57 L"files/devtools/debugger_step.html"; | 58 L"files/devtools/debugger_step.html"; |
| 58 const wchar_t kDebuggerClosurePage[] = | 59 const wchar_t kDebuggerClosurePage[] = |
| 59 L"files/devtools/debugger_closure.html"; | 60 L"files/devtools/debugger_closure.html"; |
| 60 const wchar_t kDebuggerIntrinsicPropertiesPage[] = | 61 const wchar_t kDebuggerIntrinsicPropertiesPage[] = |
| 61 L"files/devtools/debugger_intrinsic_properties.html"; | 62 L"files/devtools/debugger_intrinsic_properties.html"; |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 // Tests main resource load. | 264 // Tests main resource load. |
| 264 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestMainResource) { | 265 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestMainResource) { |
| 265 RunTest("testMainResource", kSimplePage); | 266 RunTest("testMainResource", kSimplePage); |
| 266 } | 267 } |
| 267 | 268 |
| 268 // Tests resources panel enabling. | 269 // Tests resources panel enabling. |
| 269 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestEnableResourcesTab) { | 270 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestEnableResourcesTab) { |
| 270 RunTest("testEnableResourcesTab", kSimplePage); | 271 RunTest("testEnableResourcesTab", kSimplePage); |
| 271 } | 272 } |
| 272 | 273 |
| 274 // Tests resources have correct sizes. |
| 275 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestResourceContentLength) { |
| 276 RunTest("testResourceContentLength", kResourceContentLengthTestPage); |
| 277 } |
| 278 |
| 273 // Tests resource headers. | 279 // Tests resource headers. |
| 274 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, DISABLED_TestResourceHeaders) { | 280 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, DISABLED_TestResourceHeaders) { |
| 275 RunTest("testResourceHeaders", kResourceTestPage); | 281 RunTest("testResourceHeaders", kResourceTestPage); |
| 276 } | 282 } |
| 277 | 283 |
| 278 // Tests profiler panel. | 284 // Tests profiler panel. |
| 279 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestProfilerTab) { | 285 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestProfilerTab) { |
| 280 RunTest("testProfilerTab", kJsPage); | 286 RunTest("testProfilerTab", kJsPage); |
| 281 } | 287 } |
| 282 | 288 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestConsoleLog) { | 378 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestConsoleLog) { |
| 373 RunTest("testConsoleLog", kConsoleTestPage); | 379 RunTest("testConsoleLog", kConsoleTestPage); |
| 374 } | 380 } |
| 375 | 381 |
| 376 // Tests eval global values. | 382 // Tests eval global values. |
| 377 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestEvalGlobal) { | 383 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestEvalGlobal) { |
| 378 RunTest("testEvalGlobal", kEvalTestPage); | 384 RunTest("testEvalGlobal", kEvalTestPage); |
| 379 } | 385 } |
| 380 | 386 |
| 381 } // namespace | 387 } // namespace |
| OLD | NEW |