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