Bug 31296 - Web Inspector: Should support console.groupCollapsed
authorjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 May 2010 13:44:21 +0000 (13:44 +0000)
committerjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 May 2010 13:44:21 +0000 (13:44 +0000)
commit8ba5eff5fe1e68389b82f19f67faae1d5e70b53b
tree8e9baae3c1a42275f9cb52e0a0129c6b476e6da9
parent6ee5677842ccf2557c8183322fa931b606683841
Bug 31296 - Web Inspector: Should support console.groupCollapsed
https://bugs.webkit.org/show_bug.cgi?id=31296

Reviewed by Pavel Feldman

WebCore:

* inspector/InspectorController.cpp:
(WebCore::InspectorController::startGroup):
Set the message type based on whether or not it should be initially collapsed.
* inspector/InspectorController.h:

* inspector/front-end/ConsoleView.js:
Treat a StartGroupCollapsed message the same way as a StartGroup message, but display the tree for the group as collapsed.
(WebInspector.ConsoleView.prototype.addMessage):
(WebInspector.ConsoleMessage.prototype.toMessageElement):
(WebInspector.ConsoleMessage.prototype.toString):
(WebInspector.ConsoleGroup.prototype.addMessage):

* page/Console.cpp:
(WebCore::Console::groupCollapsed):
Create a group and indicate that it should be collapsed.
* page/Console.h:
Add the StartGroupCollapsed message type.

(WebCore::):
* page/Console.idl:
Create the JS bindings for groupCollapsed.

LayoutTests:

* fast/dom/Window/window-properties-expected.txt:
Update results to take into account added groupCollapsed function.

* inspector/console-tests-expected.txt:
* inspector/console-tests.html:
Add test for groupCollapsed and its results.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@60234 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/window-properties-expected.txt
LayoutTests/inspector/console-tests-expected.txt
LayoutTests/inspector/console-tests.html
WebCore/ChangeLog
WebCore/inspector/InspectorController.cpp
WebCore/inspector/InspectorController.h
WebCore/inspector/front-end/ConsoleView.js
WebCore/page/Console.cpp
WebCore/page/Console.h
WebCore/page/Console.idl