Changeset 84262 in webkit
- Timestamp:
- Apr 19, 2011 10:05:16 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r84256 r84262 1 2011-04-19 Jer Noble <jer.noble@apple.com> 2 3 Reviewed by Adam Roben. 4 5 REGRESSION (r84206): 50 tests failing on SnowLeopard Intel Release (WebKit2 Tests) due to extra "supportsFullScreen() == true" output 6 https://bugs.webkit.org/show_bug.cgi?id=58890 7 8 Add a layoutTestController flag which controls when full screen callbacks are written to stdout. 9 Defaults to false. 10 11 * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: Added dumpFullScreenCallbacks(). 12 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: 13 (WTR::InjectedBundlePage::supportsFullScreen): Only write to stdout if shouldDumpFullScreenCallbacks is set. 14 (WTR::InjectedBundlePage::enterFullScreenForElement): Ditto. 15 (WTR::InjectedBundlePage::exitFullScreenForElement): Ditto. 16 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: 17 (WTR::LayoutTestController::LayoutTestController): Initialize new ivar. 18 * WebKitTestRunner/InjectedBundle/LayoutTestController.h: 19 (WTR::LayoutTestController::dumpFullScreenCallbacks): Added. 20 (WTR::LayoutTestController::shouldDumpFullScreenCallbacks): Added. 21 1 22 2011-04-19 Kristóf Kosztyó <Kosztyo.Kristof@stud.u-szeged.hu> 2 23 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl
r84160 r84262 40 40 void dumpStatusCallbacks(); 41 41 void dumpTitleChanges(); 42 void dumpFullScreenCallbacks(); 42 43 43 44 // Special options. -
trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp
r84206 r84262 1013 1013 bool InjectedBundlePage::supportsFullScreen(WKBundlePageRef pageRef, WKFullScreenKeyboardRequestType requestType) 1014 1014 { 1015 InjectedBundle::shared().os() << "supportsFullScreen() == true\n"; 1015 if (InjectedBundle::shared().layoutTestController()->shouldDumpFullScreenCallbacks()) 1016 InjectedBundle::shared().os() << "supportsFullScreen() == true\n"; 1016 1017 return true; 1017 1018 } … … 1019 1020 void InjectedBundlePage::enterFullScreenForElement(WKBundlePageRef pageRef, WKBundleNodeHandleRef elementRef) 1020 1021 { 1021 InjectedBundle::shared().os() << "enterFullScreenForElement()\n"; 1022 if (InjectedBundle::shared().layoutTestController()->shouldDumpFullScreenCallbacks()) 1023 InjectedBundle::shared().os() << "enterFullScreenForElement()\n"; 1022 1024 WKBundlePageWillEnterFullScreen(pageRef); 1023 1025 WKBundlePageDidEnterFullScreen(pageRef); … … 1026 1028 void InjectedBundlePage::exitFullScreenForElement(WKBundlePageRef pageRef, WKBundleNodeHandleRef elementRef) 1027 1029 { 1028 InjectedBundle::shared().os() << "exitFullScreenForElement()\n"; 1030 if (InjectedBundle::shared().layoutTestController()->shouldDumpFullScreenCallbacks()) 1031 InjectedBundle::shared().os() << "exitFullScreenForElement()\n"; 1029 1032 WKBundlePageWillExitFullScreen(pageRef); 1030 1033 WKBundlePageDidExitFullScreen(pageRef); -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r83333 r84262 100 100 , m_dumpTitleChanges(false) 101 101 , m_dumpPixels(true) 102 , m_dumpFullScreenCallbacks(false) 102 103 , m_waitToDump(false) 103 104 , m_testRepaint(false) -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h
r84160 r84262 68 68 void dumpStatusCallbacks() { m_dumpStatusCallbacks = true; } 69 69 void dumpTitleChanges() { m_dumpTitleChanges = true; } 70 void dumpFullScreenCallbacks() { m_dumpFullScreenCallbacks = true; } 70 71 71 72 // Special options. … … 130 131 bool shouldDumpTitleChanges() const { return m_dumpTitleChanges; } 131 132 bool shouldDumpPixels() const { return m_dumpPixels; } 133 bool shouldDumpFullScreenCallbacks() const { return m_dumpFullScreenCallbacks; } 132 134 133 135 bool waitToDump() const { return m_waitToDump; } … … 171 173 bool m_dumpTitleChanges; 172 174 bool m_dumpPixels; 175 bool m_dumpFullScreenCallbacks; 173 176 bool m_waitToDump; // True if waitUntilDone() has been called, but notifyDone() has not yet been called. 174 177 bool m_testRepaint;
Note: See TracChangeset
for help on using the changeset viewer.