2011-05-19 Sergey Vorobyev <sergeyvorobyev@google.com>
Reviewed by Yury Semikhatsky.
Web Inspector: Background network events collection - add GUI to Inspector.
https://bugs.webkit.org/show_bug.cgi?id=58652
Move reopenFrontend() to inspector-test.js
Add first test for background events collection.
* http/tests/inspector/inspector-test.js:
():
* http/tests/inspector/network-test.js: Added.
(initialize_NetworkTest.InspectorTest.enableBackgroundEventCollection):
(initialize_NetworkTest.InspectorTest.disableBackgroundEventCollection):
* http/tests/inspector/network/network-clear-after-disabled-expected.txt: Added.
* http/tests/inspector/network/network-clear-after-disabled.html: Added.
* http/tests/inspector/network/network-close-load-open-expected.txt: Added.
* http/tests/inspector/network/network-close-load-open.html: Added.
* http/tests/inspector/network/network-open-load-reopen-expected.txt: Added.
* http/tests/inspector/network/network-open-load-reopen.html: Added.
* inspector/debugger/open-close-open-expected.txt:
* inspector/debugger/open-close-open.html:
* platform/qt/Skipped:
2011-05-19 Sergey Vorobyev <sergeyvorobyev@google.com>
Reviewed by Yury Semikhatsky.
Web Inspector: Background network events collection - add GUI to Inspector.
https://bugs.webkit.org/show_bug.cgi?id=58652
Now in WebInspector Network panel avalaible new checkbox item in context menu:
"Background events collection". It allows to save all network events when inspector
frontend closed. Events that occur before collection enabling are not preserved after
frontend reopening. Property unique for each page. Disabled by default.
Tests: http/tests/inspector/network/network-clear-after-disabled.html
http/tests/inspector/network/network-close-load-open.html
http/tests/inspector/network/network-open-load-reopen.html
* inspector/EventsCollector.cpp:
(WebCore::EventsCollector::clear):
* inspector/EventsCollector.h:
* inspector/Inspector.json:
* inspector/InspectorFrontendProxy.cpp:
(WebCore::InspectorFrontendProxy::inspectorFrontendChannel):
* inspector/InspectorFrontendProxy.h:
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::setFrontend):
(WebCore::InspectorResourceAgent::clearFrontend):
(WebCore::InspectorResourceAgent::isBackgroundEventsCollectionEnabled):
(WebCore::InspectorResourceAgent::setBackgroundEventsCollectionEnabled):
(WebCore::InspectorResourceAgent::initializeBackgroundCollection):
(WebCore::InspectorResourceAgent::InspectorResourceAgent):
* inspector/InspectorResourceAgent.h:
* inspector/front-end/NetworkPanel.js:
(WebInspector.NetworkPanel):
(WebInspector.NetworkPanel.prototype._contextMenu):
(WebInspector.NetworkPanel.prototype._toggleBackgroundEventsCollection):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86959 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/platform/qt/Skipped b/LayoutTests/platform/qt/Skipped
index 11783d0..bf7cabc 100644
--- a/LayoutTests/platform/qt/Skipped
+++ b/LayoutTests/platform/qt/Skipped
@@ -450,6 +450,11 @@
http/tests/inspector/change-iframe-src.html
inspector/debugger/open-close-open.html
+# [Qt] This tests' fails probably has same reason as test inspector/debugger/open-close-open.html.
+http/tests/inspector/network/network-open-load-reopen.html
+http/tests/inspector/network/network-close-load-open.html
+http/tests/inspector/network/network-clear-after-disabled.html
+
# [Qt] fast/frames/flattening/frameset-flattening-subframesets.html fails intermittently on Qt bot
# Fails caused by layoutTestController.display() in fast/frames/flattening/frameset-flattening-subframe-resize.html
# https://bugs.webkit.org/show_bug.cgi?id=37334