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

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

Issue 11829002: [content shell] add support for dumping frame load callbacks (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();
12 native function DumpUserGestureInFrameLoadCallbacks();
13 native function SetStopProvisionalFrameLoads();
14 native function DumpTitleChanges();
11 native function EvaluateInWebInspector(); 15 native function EvaluateInWebInspector();
12 native function ExecCommand(); 16 native function ExecCommand();
13 native function GetWorkerThreadCount(); 17 native function GetWorkerThreadCount();
14 native function NotifyDone(); 18 native function NotifyDone();
15 native function OverridePreference(); 19 native function OverridePreference();
16 native function SetCanOpenWindows(); 20 native function SetCanOpenWindows();
17 native function SetDumpAsText(); 21 native function SetDumpAsText();
18 native function SetDumpChildFramesAsText(); 22 native function SetDumpChildFramesAsText();
19 native function SetPrinting(); 23 native function SetPrinting();
20 native function SetShouldStayOnPageAfterHandlingBeforeUnload(); 24 native function SetShouldStayOnPageAfterHandlingBeforeUnload();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 Object.defineProperty(this, 82 Object.defineProperty(this,
79 "evaluateInWebInspector", 83 "evaluateInWebInspector",
80 {value: EvaluateInWebInspector}); 84 {value: EvaluateInWebInspector});
81 Object.defineProperty(this, "execCommand", {value: ExecCommand}); 85 Object.defineProperty(this, "execCommand", {value: ExecCommand});
82 Object.defineProperty(this, 86 Object.defineProperty(this,
83 "overridePreference", 87 "overridePreference",
84 {value: OverridePreference}); 88 {value: OverridePreference});
85 Object.defineProperty(this, 89 Object.defineProperty(this,
86 "dumpEditingCallbacks", 90 "dumpEditingCallbacks",
87 {value: DumpEditingCallbacks}); 91 {value: DumpEditingCallbacks});
88 92 Object.defineProperty(this,
93 "dumpFrameLoadCallbacks",
94 {value: DumpFrameLoadCallbacks});
95 Object.defineProperty(this,
96 "dumpUserGestureInFrameLoadCallbacks",
97 {value: DumpUserGestureInFrameLoadCallbacks});
98 Object.defineProperty(this,
99 "setStopProvisionalFrameLoads",
100 {value: SetStopProvisionalFrameLoads});
101 Object.defineProperty(this,
102 "dumpTitleChanges",
103 {value: DumpTitleChanges});
89 104
90 Object.defineProperty(this, 105 Object.defineProperty(this,
91 "globalFlag", 106 "globalFlag",
92 { 107 {
93 get: GetGlobalFlag, 108 get: GetGlobalFlag,
94 set: SetGlobalFlag, 109 set: SetGlobalFlag,
95 writeable: true, 110 writeable: true,
96 configurable: true, 111 configurable: true,
97 enumerable: true 112 enumerable: true
98 }); 113 });
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 "abortModal" 150 "abortModal"
136 ]; 151 ];
137 for (var idx in stubs) { 152 for (var idx in stubs) {
138 Object.defineProperty( 153 Object.defineProperty(
139 this, stubs[idx], {value: function() { return null; }}); 154 this, stubs[idx], {value: function() { return null; }});
140 } 155 }
141 } 156 }
142 TestRunner.prototype = DefaultHandler("testRunner"); 157 TestRunner.prototype = DefaultHandler("testRunner");
143 testRunner = new TestRunner(); 158 testRunner = new TestRunner();
144 })(); 159 })();
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