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

Side by Side Diff: LayoutTests/http/tests/inspector/inspector-test2.js

Issue 6282016: Merge 76683 - 2011-01-26 Pavel Feldman <pfeldman@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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
OLDNEW
1 var initialize_InspectorTest = function() { 1 var initialize_InspectorTest = function() {
2 2
3 var results = []; 3 var results = [];
4 var resultsSynchronized = false; 4 var resultsSynchronized = false;
5 5
6 InspectorTest.completeTest = function() 6 InspectorTest.completeTest = function()
7 { 7 {
8 InspectorBackend.didEvaluateForTestInFrontend(InspectorTest.completeTestCall Id, ""); 8 InspectorBackend.didEvaluateForTestInFrontend(InspectorTest.completeTestCall Id, "");
9 } 9 }
10 10
11 InspectorTest.evaluateInConsole = function(code, callback) 11 InspectorTest.evaluateInConsole = function(code, callback)
12 { 12 {
13 WebInspector.console.visible = true; 13 WebInspector.console.visible = true;
14 WebInspector.console.prompt.text = code; 14 WebInspector.console.prompt.text = code;
15 var event = document.createEvent("KeyboardEvent"); 15 var event = document.createEvent("KeyboardEvent");
16 event.initKeyboardEvent("keydown", true, true, null, "Enter", ""); 16 event.initKeyboardEvent("keydown", true, true, null, "Enter", "");
17 WebInspector.console.promptElement.dispatchEvent(event); 17 WebInspector.console.promptElement.dispatchEvent(event);
18 InspectorTest._addSniffer(WebInspector.ConsoleView.prototype, "addMessage", 18 InspectorTest._addSniffer(WebInspector.ConsoleView.prototype, "addMessage",
19 function(commandResult) { 19 function(commandResult) {
20 if (callback) 20 if (callback)
21 callback(commandResult.toMessageElement().textContent); 21 callback(commandResult.toMessageElement().textContent);
22 }); 22 });
23 } 23 }
24 24
25 InspectorTest.evaluateInPage = function(code, callback) 25 InspectorTest.evaluateInPage = function(code, callback)
26 { 26 {
27 InspectorBackend.evaluate(code, "console", callback || function() {}); 27 InspectorBackend.evaluate(code, "console", false, callback || function() {}) ;
28 } 28 }
29 29
30 InspectorTest.evaluateInPageWithTimeout = function(code, callback) 30 InspectorTest.evaluateInPageWithTimeout = function(code, callback)
31 { 31 {
32 InspectorTest.evaluateInPage("setTimeout(unescape('" + escape(code) + "'))", callback); 32 InspectorTest.evaluateInPage("setTimeout(unescape('" + escape(code) + "'))", callback);
33 } 33 }
34 34
35 InspectorTest.addResult = function(text) 35 InspectorTest.addResult = function(text)
36 { 36 {
37 results.push(text); 37 results.push(text);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 251
252 function output(text) 252 function output(text)
253 { 253 {
254 var outputElement = document.createElement("div"); 254 var outputElement = document.createElement("div");
255 outputElement.className = "output"; 255 outputElement.className = "output";
256 outputElement.style.whiteSpace = "pre"; 256 outputElement.style.whiteSpace = "pre";
257 outputElement.appendChild(document.createTextNode(text)); 257 outputElement.appendChild(document.createTextNode(text));
258 outputElement.appendChild(document.createElement("br")); 258 outputElement.appendChild(document.createElement("br"));
259 document.body.appendChild(outputElement); 259 document.body.appendChild(outputElement);
260 } 260 }
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/inspector/extensions-test.js ('k') | LayoutTests/http/tests/inspector/resource-har-conversion.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698