Commit e4d6c649 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

2011-01-26 Pavel Feldman <pfeldman@chromium.org>

        Not reviewed: inspector tests fix.

        * http/tests/inspector/inspector-test2.js:
        (initialize_InspectorTest.InspectorTest.evaluateInPage):
        * inspector/console-format.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9b8b8d6c
2011-01-26 Pavel Feldman <pfeldman@chromium.org>
Not reviewed: inspector tests fix.
* http/tests/inspector/inspector-test2.js:
(initialize_InspectorTest.InspectorTest.evaluateInPage):
* inspector/console-format.html:
2011-01-26 Carlos Garcia Campos <cgarcia@igalia.com>
Unreviewed, unskip passing canvas tests in GTK port.
......
......@@ -34,7 +34,7 @@ InspectorTest.dispatchOnMessage = function(messageId, callback, recurring)
InspectorTest.runExtensionTests = function()
{
InspectorBackend.evaluate("location.href", "console", function(result) {
InspectorBackend.evaluate("location.href", "console", false, function(result) {
var pageURL = result.description;
var extensionURL = (/^https?:/.test(pageURL) ?
pageURL.replace(/^(https?:\/\/[^/]*\/).*$/,"$1") :
......
......@@ -24,7 +24,7 @@ InspectorTest.evaluateInConsole = function(code, callback)
InspectorTest.evaluateInPage = function(code, callback)
{
InspectorBackend.evaluate(code, "console", callback || function() {});
InspectorBackend.evaluate(code, "console", false, callback || function() {});
}
InspectorTest.evaluateInPageWithTimeout = function(code, callback)
......
......@@ -26,7 +26,7 @@ var test = function()
}
InspectorTest.reloadPageIfNeeded(function() {
InspectorBackend.evaluate("doXHR()", "console", function() {
InspectorBackend.evaluate("doXHR()", "console", false, function() {
addCookieHeadersToResource(findResourceByURL(/inspector-test2\.js$/));
var entries = (new WebInspector.HARLog()).build().entries;
entries.sort(InspectorTest.resourceURLComparer);
......
......@@ -17,7 +17,7 @@ function doit()
output("=== After clear ===");
dumpConsoleMessages();
}
evaluateInWebInspector("InspectorBackend.evaluate('clear()', '', function() {})", callback);
evaluateInWebInspector("InspectorBackend.evaluate('clear()', '', true, function() {})", callback);
}
</script>
......
......@@ -22,7 +22,7 @@ function frontend_expandAndDumpConsoleMessages(testController)
// Need test to be async to expand console objects.
testController.waitUntilDone();
InspectorBackend.evaluate("window", "console", evalCallback);
InspectorBackend.evaluate("window", "console", false, evalCallback);
function evalCallback(result)
{
......
......@@ -80,7 +80,7 @@ function frontend_evalExpression(expression)
self.addMessage(new WebInspector.ConsoleCommandResult(result, expression));
}
self.evalInInspectedWindow(expression, "console", printResult);
self.evalInInspectedWindow(expression, "console", false, printResult);
}
</script>
......
......@@ -95,7 +95,7 @@ WebInspector.ExtensionWatchSidebarPane.prototype = {
setExpression: function(expression, title)
{
InspectorBackend.evaluate(expression, "extension-watch", this._onEvaluate.bind(this, title));
InspectorBackend.evaluate(expression, "extension-watch", false, this._onEvaluate.bind(this, title));
},
_onEvaluate: function(title, result)
......
......@@ -272,7 +272,7 @@ WebInspector.ExtensionServer.prototype = {
var evalExpression = "JSON.stringify(eval('" +
"with (window.console._commandLineAPI) with (window) {' + unescape('" + escape(message.expression) +
"') + '}'));";
InspectorBackend.evaluate(evalExpression, "none", callback.bind(this));
InspectorBackend.evaluate(evalExpression, "none", false, callback.bind(this));
},
_onRevealAndSelect: function(message)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment