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

Side by Side Diff: chrome/browser/devtools/devtools_sanity_browsertest.cc

Issue 12310063: Add TestTimelineFrames and TestPageOverlayUpdate tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing new file Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/cancelable_callback.h" 6 #include "base/cancelable_callback.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 const char kDebuggerTestPage[] = "files/devtools/debugger_test_page.html"; 76 const char kDebuggerTestPage[] = "files/devtools/debugger_test_page.html";
77 const char kPauseWhenLoadingDevTools[] = 77 const char kPauseWhenLoadingDevTools[] =
78 "files/devtools/pause_when_loading_devtools.html"; 78 "files/devtools/pause_when_loading_devtools.html";
79 const char kPauseWhenScriptIsRunning[] = 79 const char kPauseWhenScriptIsRunning[] =
80 "files/devtools/pause_when_script_is_running.html"; 80 "files/devtools/pause_when_script_is_running.html";
81 const char kPageWithContentScript[] = 81 const char kPageWithContentScript[] =
82 "files/devtools/page_with_content_script.html"; 82 "files/devtools/page_with_content_script.html";
83 const char kNavigateBackTestPage[] = 83 const char kNavigateBackTestPage[] =
84 "files/devtools/navigate_back.html"; 84 "files/devtools/navigate_back.html";
85 const char kAnimationFramesTestPage[] =
86 "files/devtools/animation_frames_page.html";
85 const char kChunkedTestPage[] = "chunked"; 87 const char kChunkedTestPage[] = "chunked";
86 const char kSlowTestPage[] = 88 const char kSlowTestPage[] =
87 "chunked?waitBeforeHeaders=100&waitBetweenChunks=100&chunksNumber=2"; 89 "chunked?waitBeforeHeaders=100&waitBetweenChunks=100&chunksNumber=2";
88 const char kSharedWorkerTestPage[] = 90 const char kSharedWorkerTestPage[] =
89 "files/workers/workers_ui_shared_worker.html"; 91 "files/workers/workers_ui_shared_worker.html";
90 const char kReloadSharedWorkerTestPage[] = 92 const char kReloadSharedWorkerTestPage[] =
91 "files/workers/debug_shared_worker_initialization.html"; 93 "files/workers/debug_shared_worker_initialization.html";
92 94
93 void RunTestFunction(DevToolsWindow* window, const char* test_name) { 95 void RunTestFunction(DevToolsWindow* window, const char* test_name) {
94 std::string result; 96 std::string result;
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 devtools_manager->AddMessageToConsole(agent_host, 585 devtools_manager->AddMessageToConsole(agent_host,
584 content::CONSOLE_MESSAGE_LEVEL_LOG, 586 content::CONSOLE_MESSAGE_LEVEL_LOG,
585 "log"); 587 "log");
586 devtools_manager->AddMessageToConsole(agent_host, 588 devtools_manager->AddMessageToConsole(agent_host,
587 content::CONSOLE_MESSAGE_LEVEL_ERROR, 589 content::CONSOLE_MESSAGE_LEVEL_ERROR,
588 "error"); 590 "error");
589 RunTestFunction(window_, "checkLogAndErrorMessages"); 591 RunTestFunction(window_, "checkLogAndErrorMessages");
590 CloseDevToolsWindow(); 592 CloseDevToolsWindow();
591 } 593 }
592 594
595 // Tests that DevTools page overlay is updated when needed and
596 // not updated while idle.
597 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestPageOverlayUpdate) {
598 RunTest("testPageOverlayUpdate", kDebuggerTestPage);
599 }
600
601
yurys 2013/02/25 09:13:48 Maybe add a comment for this test too (for consist
602 IN_PROC_BROWSER_TEST_F(DevToolsSanityTest, TestTimelineFrames) {
603 RunTest("testTimelineFrames", kAnimationFramesTestPage);
604 }
605
593 } // namespace 606 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698