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

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

Issue 11573035: [content shell] implement testRunner.execCommand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment Created 8 years 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 EvaluateInWebInspector(); 10 native function EvaluateInWebInspector();
11 native function ExecCommand();
11 native function GetWorkerThreadCount(); 12 native function GetWorkerThreadCount();
12 native function NotifyDone(); 13 native function NotifyDone();
13 native function SetCanOpenWindows(); 14 native function SetCanOpenWindows();
14 native function SetDumpAsText(); 15 native function SetDumpAsText();
15 native function SetDumpChildFramesAsText(); 16 native function SetDumpChildFramesAsText();
16 native function SetPrinting(); 17 native function SetPrinting();
17 native function SetShouldStayOnPageAfterHandlingBeforeUnload(); 18 native function SetShouldStayOnPageAfterHandlingBeforeUnload();
18 native function SetWaitUntilDone(); 19 native function SetWaitUntilDone();
19 native function SetXSSAuditorEnabled(); 20 native function SetXSSAuditorEnabled();
20 native function ShowWebInspector(); 21 native function ShowWebInspector();
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 "setXSSAuditorEnabled", 69 "setXSSAuditorEnabled",
69 {value: SetXSSAuditorEnabled}); 70 {value: SetXSSAuditorEnabled});
70 Object.defineProperty(this, "waitUntilDone", {value: SetWaitUntilDone}); 71 Object.defineProperty(this, "waitUntilDone", {value: SetWaitUntilDone});
71 Object.defineProperty(this, "showWebInspector", {value: ShowWebInspector}); 72 Object.defineProperty(this, "showWebInspector", {value: ShowWebInspector});
72 Object.defineProperty(this, 73 Object.defineProperty(this,
73 "closeWebInspector", 74 "closeWebInspector",
74 {value: CloseWebInspector}); 75 {value: CloseWebInspector});
75 Object.defineProperty(this, 76 Object.defineProperty(this,
76 "evaluateInWebInspector", 77 "evaluateInWebInspector",
77 {value: EvaluateInWebInspector}); 78 {value: EvaluateInWebInspector});
79 Object.defineProperty(this, "execCommand", {value: ExecCommand});
78 80
79 81
80 Object.defineProperty(this, 82 Object.defineProperty(this,
81 "globalFlag", 83 "globalFlag",
82 { 84 {
83 get: GetGlobalFlag, 85 get: GetGlobalFlag,
84 set: SetGlobalFlag, 86 set: SetGlobalFlag,
85 writeable: true, 87 writeable: true,
86 configurable: true, 88 configurable: true,
87 enumerable: true 89 enumerable: true
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 "abortModal" 127 "abortModal"
126 ]; 128 ];
127 for (var idx in stubs) { 129 for (var idx in stubs) {
128 Object.defineProperty( 130 Object.defineProperty(
129 this, stubs[idx], {value: function() { return null; }}); 131 this, stubs[idx], {value: function() { return null; }});
130 } 132 }
131 } 133 }
132 TestRunner.prototype = DefaultHandler("testRunner"); 134 TestRunner.prototype = DefaultHandler("testRunner");
133 testRunner = new TestRunner(); 135 testRunner = new TestRunner();
134 })(); 136 })();
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