Changeset 83599 in webkit
- Timestamp:
- Apr 12, 2011 9:36:22 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r83595 r83599 1 2011-04-12 Ilya Tikhonovsky <loislo@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: remove unnecessary method InspectorAgent.didEvaluateForTestInFrontend. 6 https://bugs.webkit.org/show_bug.cgi?id=58335 7 8 It was the method for Inspector layout tests. 9 We can use RuntimeAgent.evaluate instead. 10 11 * http/tests/inspector/inspector-test.js: 12 (initialize_InspectorTest.InspectorTest.completeTest): 13 1 14 2011-04-12 Brady Eidson <beidson@apple.com> 2 15 -
trunk/LayoutTests/http/tests/inspector/inspector-test.js
r83583 r83599 15 15 InspectorTest.completeTest = function() 16 16 { 17 InspectorAgent.didEvaluateForTestInFrontend(InspectorTest.completeTestCallId, "");17 RuntimeAgent.evaluate("didEvaluateForTestInFrontend(" + InspectorTest.completeTestCallId + ", \"\")", "test"); 18 18 } 19 19 -
trunk/Source/WebCore/ChangeLog
r83598 r83599 1 2011-04-12 Ilya Tikhonovsky <loislo@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: remove unnecessary method InspectorAgent.didEvaluateForTestInFrontend. 6 https://bugs.webkit.org/show_bug.cgi?id=58335 7 8 It was the method for Inspector layout tests. 9 We can use RuntimeAgent.evaluate instead. 10 11 * inspector/Inspector.json: 12 * inspector/InspectorAgent.cpp: 13 * inspector/InspectorAgent.h: 14 * inspector/InspectorController.cpp: 15 (WebCore::InspectorController::connectFrontend): 16 * inspector/front-end/TestController.js: 17 (WebInspector.TestController.prototype.notifyDone): 18 1 19 2011-04-12 Philippe Normand <pnormand@igalia.com> 2 20 -
trunk/Source/WebCore/inspector/Inspector.json
r83576 r83599 4 4 "types": [], 5 5 "commands": [ 6 {7 "name": "didEvaluateForTestInFrontend",8 "parameters": [9 { "name": "testCallId", "type": "integer" },10 { "name": "jsonResult", "type": "string" }11 ]12 }13 6 ], 14 7 "events": [ -
trunk/Source/WebCore/inspector/InspectorAgent.cpp
r82845 r83599 394 394 } 395 395 396 void InspectorAgent::didEvaluateForTestInFrontend(ErrorString*, long callId, const String& jsonResult)397 {398 ScriptState* scriptState = scriptStateFromPage(debuggerWorld(), m_inspectedPage);399 ScriptObject window;400 ScriptGlobalObject::get(scriptState, "window", window);401 ScriptFunctionCall function(window, "didEvaluateForTestInFrontend");402 function.appendArgument(callId);403 function.appendArgument(jsonResult);404 function.call();405 }406 407 396 void InspectorAgent::setInspectorExtensionAPI(const String& source) 408 397 { -
trunk/Source/WebCore/inspector/InspectorAgent.h
r82845 r83599 171 171 void getInspectorState(RefPtr<InspectorObject>* state); 172 172 void setMonitoringXHREnabled(bool enabled, bool* newState); 173 // Following are used from InspectorBackend and internally.174 void didEvaluateForTestInFrontend(ErrorString*, long callId, const String& jsonResult);175 173 176 174 private: -
trunk/Source/WebCore/inspector/InspectorController.cpp
r82803 r83599 133 133 m_inspectorAgent->debuggerAgent(), 134 134 #endif 135 m_inspectorAgent.get(),136 135 m_inspectorAgent->resourceAgent(), 137 136 m_inspectorAgent->pageAgent(), -
trunk/Source/WebCore/inspector/front-end/TestController.js
r79322 r83599 37 37 { 38 38 var message = typeof result === "undefined" ? "\"<undefined>\"" : JSON.stringify(result); 39 InspectorAgent.didEvaluateForTestInFrontend(callId, message);39 RuntimeAgent.evaluate("didEvaluateForTestInFrontend(" + callId + ", " + message + ")", "test"); 40 40 } 41 41 }
Note: See TracChangeset
for help on using the changeset viewer.