Changeset 54772 in webkit
- Timestamp:
- Feb 15, 2010 2:56:15 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r54769 r54772 1 2010-02-15 Robert Hogan <robert@roberthogan.net> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled(). 6 7 Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT. 8 9 https://bugs.webkit.org/show_bug.cgi?id=33096 10 11 This allows the following tests to pass: 12 13 inspector/console-format-collections.html 14 inspector/styles-iframe.html 15 inspector/syntax-highlight-css.html 16 inspector/syntax-highlight-javascript.html 17 inspector/timeline-enum-stability.html 18 inspector/timeline-layout.html 19 inspector/timeline-mark-timeline.html 20 inspector/timeline-paint.html 21 inspector/timeline-parse-html.html 22 inspector/timeline-recalculate-styles.html 23 inspector/timeline-script-tag-1.html 24 inspector/timeline-script-tag-2.html 25 inspector/timeline-trivial.html 26 inspector/cookie-resource-match.html 27 inspector/elements-img-tooltip.html 28 inspector/elements-panel-selection-on-refresh.html 29 inspector/inspected-objects-not-overriden.html 30 inspector/timeline-event-dispatch.html 31 inspector/timeline-network-resource.html 32 inspector/elements-panel-rewrite-href.html 33 inspector/console-dir.html 34 inspector/console-dirxml.html 35 inspector/console-format.html 36 inspector/console-tests.html 37 inspector/elements-panel-structure.html 38 inspector/evaluate-in-frontend.html 39 inspector/console-clear.html 40 41 * platform/qt/Skipped: 42 1 43 2010-02-14 Pavel Feldman <pfeldman@chromium.org> 2 44 -
trunk/LayoutTests/platform/qt/Skipped
r54761 r54772 159 159 # ============================================================================= # 160 160 161 # Missing layoutTestController.showWebInspector()162 inspector/console-format-collections.html163 inspector/styles-iframe.html164 inspector/syntax-highlight-css.html165 inspector/syntax-highlight-javascript.html166 inspector/timeline-enum-stability.html167 inspector/timeline-layout.html168 inspector/timeline-mark-timeline.html169 inspector/timeline-paint.html170 inspector/timeline-parse-html.html171 inspector/timeline-recalculate-styles.html172 inspector/timeline-script-tag-1.html173 inspector/timeline-script-tag-2.html174 inspector/timeline-trivial.html175 176 161 # Missing textInputController.selectedRange() 177 162 editing/selection/5825350-1.html … … 230 215 231 216 http/tests/cache/subresource-failover-to-network.html 232 233 # Missing layoutTestController.evaluateInWebInspector()234 # https://bugs.webkit.org/show_bug.cgi?id=33096235 http/tests/inspector/inspect-iframe-from-different-domain.html236 inspector/cookie-resource-match.html237 inspector/elements-img-tooltip.html238 inspector/elements-panel-selection-on-refresh.html239 inspector/inspected-objects-not-overriden.html240 inspector/timeline-event-dispatch.html241 inspector/timeline-network-resource.html242 inspector/elements-panel-rewrite-href.html243 217 244 218 # Missing layoutTestController.setSmartInsertDeleteEnabled() … … 4865 4839 http/tests/globalhistory 4866 4840 4867 # Skip inspector tests4868 inspector/console-dir.html4869 inspector/console-dirxml.html4870 inspector/console-format.html4871 inspector/console-log-before-inspector-open.html4872 inspector/console-tests.html4873 inspector/elements-panel-structure.html4874 inspector/evaluate-in-frontend.html4875 4876 4841 # Skip xmlhttprequest tests - NETWORK_ERR: XMLHttpRequest Exception 101: A network error occured in synchronous requests. 4877 4842 http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache.html … … 5003 4968 fast/dom/javascript-url-crash-function.html 5004 4969 fast/dom/location-new-window-no-crash.html 5005 inspector/console-clear.html5006 4970 http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-window-open.html 5007 4971 -
trunk/WebKit/qt/Api/qwebpage.cpp
r54550 r54772 160 160 { 161 161 return page->handle()->page->groupName(); 162 } 163 164 void QWEBKIT_EXPORT qt_drt_webinspector_executeScript(QWebPage* page, long callId, const QString& script) 165 { 166 if (!page->handle()->page->inspectorController()) 167 return; 168 page->handle()->page->inspectorController()->evaluateForTestInFrontend(callId, script); 169 } 170 171 void QWEBKIT_EXPORT qt_drt_webinspector_close(QWebPage* page) 172 { 173 if (!page->handle()->page->inspectorController()) 174 return; 175 page->handle()->page->inspectorController()->close(); 176 } 177 178 void QWEBKIT_EXPORT qt_drt_webinspector_show(QWebPage* page) 179 { 180 if (!page->handle()->page->inspectorController()) 181 return; 182 page->handle()->page->inspectorController()->show(); 183 } 184 185 void QWEBKIT_EXPORT qt_drt_setTimelineProfilingEnabled(QWebPage* page, bool enabled) 186 { 187 InspectorController* controller = page->handle()->page->inspectorController(); 188 if (!controller) 189 return; 190 if (enabled) 191 controller->startTimelineProfiler(); 192 else 193 controller->stopTimelineProfiler(); 162 194 } 163 195 -
trunk/WebKit/qt/ChangeLog
r54767 r54772 1 2010-02-15 Robert Hogan <robert@roberthogan.net>, Jocelyn Turcotte <jocelyn.turcotte@nokia.com> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled(). 6 7 Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT. 8 9 https://bugs.webkit.org/show_bug.cgi?id=33096 10 11 This allows the following tests to pass: 12 13 inspector/console-format-collections.html 14 inspector/styles-iframe.html 15 inspector/syntax-highlight-css.html 16 inspector/syntax-highlight-javascript.html 17 inspector/timeline-enum-stability.html 18 inspector/timeline-layout.html 19 inspector/timeline-mark-timeline.html 20 inspector/timeline-paint.html 21 inspector/timeline-parse-html.html 22 inspector/timeline-recalculate-styles.html 23 inspector/timeline-script-tag-1.html 24 inspector/timeline-script-tag-2.html 25 inspector/timeline-trivial.html 26 inspector/cookie-resource-match.html 27 inspector/elements-img-tooltip.html 28 inspector/elements-panel-selection-on-refresh.html 29 inspector/inspected-objects-not-overriden.html 30 inspector/timeline-event-dispatch.html 31 inspector/timeline-network-resource.html 32 inspector/elements-panel-rewrite-href.html 33 inspector/console-dir.html 34 inspector/console-dirxml.html 35 inspector/console-format.html 36 inspector/console-tests.html 37 inspector/elements-panel-structure.html 38 inspector/evaluate-in-frontend.html 39 inspector/console-clear.html 40 41 * Api/qwebpage.cpp: 42 (qt_drt_webinspector_executeScript): 43 (qt_drt_webinspector_close): 44 (qt_drt_webinspector_show): 45 (qt_drt_setTimelineProfilingEnabled): 46 47 * WebCoreSupport/InspectorClientQt.cpp: 48 (InspectorClientQt::createPage) 49 1 50 2010-02-12 Antti Koivisto <koivisto@iki.fi> 2 51 -
trunk/WebKit/qt/WebCoreSupport/InspectorClientQt.cpp
r54236 r54772 84 84 Page* InspectorClientQt::createPage() 85 85 { 86 QWebView* inspectorView = new QWebView; 87 InspectorClientWebPage* inspectorPage = new InspectorClientWebPage(inspectorView); 88 inspectorView->setPage(inspectorPage); 89 m_inspectorView.set(inspectorView); 90 91 inspectorPage->mainFrame()->load(QString::fromLatin1("qrc:/webkit/inspector/inspector.html")); 86 QWebView* inspectorView = m_inspectorView.get(); 87 if (!inspectorView) { 88 inspectorView = new QWebView; 89 InspectorClientWebPage* inspectorPage = new InspectorClientWebPage(inspectorView); 90 inspectorView->setPage(inspectorPage); 91 m_inspectorView.set(inspectorView); 92 } 93 94 inspectorView->page()->mainFrame()->load(QString::fromLatin1("qrc:/webkit/inspector/inspector.html")); 92 95 m_inspectedWebPage->d->inspectorFrontend = inspectorView; 93 96 m_inspectedWebPage->d->getOrCreateInspector()->d->setFrontend(inspectorView); 94 97 95 return m_inspectorView->page()->d->page;98 return inspectorView->page()->d->page; 96 99 } 97 100 -
trunk/WebKitTools/ChangeLog
r54760 r54772 1 2010-02-15 Robert Hogan <robert@roberthogan.net> 2 3 Reviewed by Simon Hausmann. 4 5 [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled(). 6 7 Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT. 8 9 https://bugs.webkit.org/show_bug.cgi?id=33096 10 11 This allows the following tests to pass: 12 13 inspector/console-format-collections.html 14 inspector/styles-iframe.html 15 inspector/syntax-highlight-css.html 16 inspector/syntax-highlight-javascript.html 17 inspector/timeline-enum-stability.html 18 inspector/timeline-layout.html 19 inspector/timeline-mark-timeline.html 20 inspector/timeline-paint.html 21 inspector/timeline-parse-html.html 22 inspector/timeline-recalculate-styles.html 23 inspector/timeline-script-tag-1.html 24 inspector/timeline-script-tag-2.html 25 inspector/timeline-trivial.html 26 inspector/cookie-resource-match.html 27 inspector/elements-img-tooltip.html 28 inspector/elements-panel-selection-on-refresh.html 29 inspector/inspected-objects-not-overriden.html 30 inspector/timeline-event-dispatch.html 31 inspector/timeline-network-resource.html 32 inspector/elements-panel-rewrite-href.html 33 inspector/console-dir.html 34 inspector/console-dirxml.html 35 inspector/console-format.html 36 inspector/console-tests.html 37 inspector/elements-panel-structure.html 38 inspector/evaluate-in-frontend.html 39 inspector/console-clear.html 40 41 * DumpRenderTree/qt/DumpRenderTreeQt.cpp: 42 (WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting): 43 (WebCore::isWebInspectorTest): 44 (WebCore::DumpRenderTree::open): 45 * DumpRenderTree/qt/DumpRenderTreeQt.h: 46 (WebCore::DumpRenderTree::display): 47 * DumpRenderTree/qt/LayoutTestControllerQt.cpp: 48 (LayoutTestController::closeWebInspector): 49 (LayoutTestController::showWebInspector): 50 (LayoutTestController::evaluateInWebInspector): 51 (LayoutTestController::setTimelineProfilingEnabled): 52 (LayoutTestController::display): 53 * DumpRenderTree/qt/LayoutTestControllerQt.h: 54 1 55 2010-02-14 Dirk Pranke <dpranke@chromium.org> 2 56 -
trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
r54757 r54772 413 413 } 414 414 415 static bool isWebInspectorTest(const QUrl& url) 416 { 417 if (url.path().contains("inspector/")) 418 return true; 419 return false; 420 } 421 415 422 void DumpRenderTree::open(const QUrl& url) 416 423 { 417 424 resetToConsistentStateBeforeTesting(); 425 426 if (isWebInspectorTest(m_page->mainFrame()->url())) 427 layoutTestController()->closeWebInspector(); 428 429 if (isWebInspectorTest(url)) 430 layoutTestController()->showWebInspector(); 418 431 419 432 // W3C SVG tests expect to be 480x360 -
trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.h
r54054 r54772 159 159 virtual ~WebPage(); 160 160 QWebInspector* webInspector(); 161 void closeWebInspector(); 161 162 162 163 QWebPage *createWindow(QWebPage::WebWindowType); -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
r54723 r54772 42 42 extern void qt_drt_setFrameSetFlatteningEnabled(QWebPage*, bool); 43 43 extern void qt_drt_setJavaScriptProfilingEnabled(QWebFrame*, bool enabled); 44 extern void qt_drt_setTimelineProfilingEnabled(QWebPage*, bool enabled); 44 45 extern bool qt_drt_pauseAnimation(QWebFrame*, const QString& name, double time, const QString& elementId); 45 46 extern bool qt_drt_pauseTransitionOfProperty(QWebFrame*, const QString& name, double time, const QString& elementId); … … 52 53 extern int qt_drt_workerThreadCount(); 53 54 extern int qt_drt_pageNumberForElementById(QWebFrame* qFrame, const QString& id, float width, float height); 55 extern void qt_drt_webinspector_executeScript(QWebPage* page, long callId, const QString& script); 56 extern void qt_drt_webinspector_show(QWebPage *page); 57 extern void qt_drt_webinspector_close(QWebPage *page); 54 58 55 59 LayoutTestController::LayoutTestController(WebCore::DumpRenderTree* drt) … … 286 290 } 287 291 292 293 void LayoutTestController::closeWebInspector() 294 { 295 qt_drt_webinspector_close(m_drt->webPage()); 296 m_drt->webPage()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, false); 297 } 298 288 299 void LayoutTestController::showWebInspector() 289 300 { 290 301 m_drt->webPage()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true); 291 m_drt->webPage()->webInspector()->show();292 } 293 294 void LayoutTestController:: hideWebInspector()295 { 296 m_drt->webPage()->webInspector()->hide();302 qt_drt_webinspector_show(m_drt->webPage()); 303 } 304 305 void LayoutTestController::evaluateInWebInspector(long callId, const QString& script) 306 { 307 qt_drt_webinspector_executeScript(m_drt->webPage(), callId, script); 297 308 } 298 309 … … 311 322 m_topLoadingFrame->page()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true); 312 323 qt_drt_setJavaScriptProfilingEnabled(m_topLoadingFrame, enable); 324 } 325 326 void LayoutTestController::setTimelineProfilingEnabled(bool enable) 327 { 328 qt_drt_setTimelineProfilingEnabled(m_drt->webPage(), enable); 313 329 } 314 330 -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h
r54723 r54772 116 116 void dumpSelectionRect() const {} 117 117 void showWebInspector(); 118 void hideWebInspector(); 118 void closeWebInspector(); 119 void evaluateInWebInspector(long callId, const QString& script); 119 120 120 121 void setFrameSetFlatteningEnabled(bool enable); 121 122 void setAllowUniversalAccessFromFileURLs(bool enable); 122 123 void setJavaScriptProfilingEnabled(bool enable); 124 void setTimelineProfilingEnabled(bool enable); 123 125 void setFixedContentsSize(int width, int height); 124 126 void setPrivateBrowsingEnabled(bool enable);
Note: See TracChangeset
for help on using the changeset viewer.