OLD | NEW |
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 Loading... |
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 Loading... |
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 })(); |
OLD | NEW |