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

Side by Side Diff: content/shell/webkit_test_runner.js

Issue 11821051: [content shell] hook up resource load callback printing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « content/shell/webkit_test_runner.cc ('k') | content/shell/webkit_test_runner_bindings.cc » ('j') | 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) 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 var testRunner = testRunner || {}; 5 var testRunner = testRunner || {};
6 6
7 (function() { 7 (function() {
8 native function CloseWebInspector(); 8 native function CloseWebInspector();
9 native function Display(); 9 native function Display();
10 native function DumpEditingCallbacks(); 10 native function DumpEditingCallbacks();
11 native function DumpFrameLoadCallbacks(); 11 native function DumpFrameLoadCallbacks();
12 native function DumpUserGestureInFrameLoadCallbacks(); 12 native function DumpUserGestureInFrameLoadCallbacks();
13 native function SetStopProvisionalFrameLoads(); 13 native function SetStopProvisionalFrameLoads();
14 native function DumpTitleChanges(); 14 native function DumpTitleChanges();
15 native function DumpResourceLoadCallbacks();
16 native function DumpResourceRequestCallbacks();
17 native function DumpResourceResponseMIMETypes();
18 native function DumpCreateView();
15 native function EvaluateInWebInspector(); 19 native function EvaluateInWebInspector();
16 native function ExecCommand(); 20 native function ExecCommand();
17 native function GetWorkerThreadCount(); 21 native function GetWorkerThreadCount();
18 native function NotifyDone(); 22 native function NotifyDone();
19 native function OverridePreference(); 23 native function OverridePreference();
20 native function SetCanOpenWindows(); 24 native function SetCanOpenWindows();
21 native function SetDumpAsText(); 25 native function SetDumpAsText();
22 native function SetDumpChildFramesAsText(); 26 native function SetDumpChildFramesAsText();
23 native function SetPrinting(); 27 native function SetPrinting();
24 native function SetShouldStayOnPageAfterHandlingBeforeUnload(); 28 native function SetShouldStayOnPageAfterHandlingBeforeUnload();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 Object.defineProperty(this, 96 Object.defineProperty(this,
93 "dumpFrameLoadCallbacks", 97 "dumpFrameLoadCallbacks",
94 {value: DumpFrameLoadCallbacks}); 98 {value: DumpFrameLoadCallbacks});
95 Object.defineProperty(this, 99 Object.defineProperty(this,
96 "dumpUserGestureInFrameLoadCallbacks", 100 "dumpUserGestureInFrameLoadCallbacks",
97 {value: DumpUserGestureInFrameLoadCallbacks}); 101 {value: DumpUserGestureInFrameLoadCallbacks});
98 Object.defineProperty(this, 102 Object.defineProperty(this,
99 "setStopProvisionalFrameLoads", 103 "setStopProvisionalFrameLoads",
100 {value: SetStopProvisionalFrameLoads}); 104 {value: SetStopProvisionalFrameLoads});
101 Object.defineProperty(this, 105 Object.defineProperty(this,
106 "dumpResourceLoadCallbacks",
107 {value: DumpResourceLoadCallbacks});
108 Object.defineProperty(this,
109 "dumpResourceRequestCallbacks",
110 {value: DumpResourceRequestCallbacks});
111 Object.defineProperty(this,
112 "dumpResourceResponseMIMETypes",
113 {value: DumpResourceResponseMIMETypes});
114 Object.defineProperty(this,
115 "dumpCreateView",
116 {value: DumpCreateView});
117 Object.defineProperty(this,
102 "dumpTitleChanges", 118 "dumpTitleChanges",
103 {value: DumpTitleChanges}); 119 {value: DumpTitleChanges});
104 120
105 Object.defineProperty(this, 121 Object.defineProperty(this,
106 "globalFlag", 122 "globalFlag",
107 { 123 {
108 get: GetGlobalFlag, 124 get: GetGlobalFlag,
109 set: SetGlobalFlag, 125 set: SetGlobalFlag,
110 writeable: true, 126 writeable: true,
111 configurable: true, 127 configurable: true,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 "abortModal" 166 "abortModal"
151 ]; 167 ];
152 for (var idx in stubs) { 168 for (var idx in stubs) {
153 Object.defineProperty( 169 Object.defineProperty(
154 this, stubs[idx], {value: function() { return null; }}); 170 this, stubs[idx], {value: function() { return null; }});
155 } 171 }
156 } 172 }
157 TestRunner.prototype = DefaultHandler("testRunner"); 173 TestRunner.prototype = DefaultHandler("testRunner");
158 testRunner = new TestRunner(); 174 testRunner = new TestRunner();
159 })(); 175 })();
OLDNEW
« no previous file with comments | « content/shell/webkit_test_runner.cc ('k') | content/shell/webkit_test_runner_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698