Changeset 139776 in webkit
- Timestamp:
- Jan 15, 2013 12:49:36 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r139771 r139776 1 2013-01-15 Jochen Eisinger <jochen@chromium.org> 2 3 [chromium] move WebDatabase related methods to TestRunner library 4 https://bugs.webkit.org/show_bug.cgi?id=106905 5 6 Reviewed by Adam Barth. 7 8 * DumpRenderTree/chromium/DRTTestRunner.cpp: 9 (DRTTestRunner::DRTTestRunner): 10 (DRTTestRunner::reset): 11 * DumpRenderTree/chromium/DRTTestRunner.h: 12 (DRTTestRunner): 13 * DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h: 14 (WebTestRunner::WebTestDelegate::clearAllDatabases): 15 (WebTestRunner::WebTestDelegate::setDatabaseQuota): 16 * DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp: 17 (WebTestRunner::TestRunner::TestRunner): 18 (WebTestRunner::TestRunner::reset): 19 (WebTestRunner::TestRunner::clearAllDatabases): 20 (WebTestRunner): 21 (WebTestRunner::TestRunner::setDatabaseQuota): 22 * DumpRenderTree/chromium/TestRunner/src/TestRunner.h: 23 (TestRunner): 24 * DumpRenderTree/chromium/WebViewHost.cpp: 25 (WebViewHost::clearAllDatabases): 26 (WebViewHost::setDatabaseQuota): 27 * DumpRenderTree/chromium/WebViewHost.h: 28 (WebViewHost): 29 1 30 2013-01-15 Tim 'mithro' Ansell <mithro@mithis.com> 2 31 -
trunk/Tools/DumpRenderTree/chromium/DRTTestRunner.cpp
r139722 r139776 105 105 bindMethod("wasMockSpeechRecognitionAborted", &DRTTestRunner::wasMockSpeechRecognitionAborted); 106 106 #endif 107 bindMethod("clearAllDatabases", &DRTTestRunner::clearAllDatabases);108 107 #if ENABLE(POINTER_LOCK) 109 108 bindMethod("didAcquirePointerLock", &DRTTestRunner::didAcquirePointerLock); … … 129 128 bindMethod("setCloseRemainingWindowsWhenComplete", &DRTTestRunner::setCloseRemainingWindowsWhenComplete); 130 129 bindMethod("setCustomPolicyDelegate", &DRTTestRunner::setCustomPolicyDelegate); 131 bindMethod("setDatabaseQuota", &DRTTestRunner::setDatabaseQuota);132 130 bindMethod("setGeolocationPermission", &DRTTestRunner::setGeolocationPermission); 133 131 bindMethod("setMockDeviceOrientation", &DRTTestRunner::setMockDeviceOrientation); … … 401 399 402 400 webkit_support::SetAcceptAllCookies(false); 403 404 // Reset the default quota for each origin to 5MB405 webkit_support::SetDatabaseQuota(5 * 1024 * 1024);406 401 407 402 setlocale(LC_ALL, ""); … … 588 583 } 589 584 590 void DRTTestRunner::clearAllDatabases(const CppArgumentList& arguments, CppVariant* result)591 {592 result->setNull();593 webkit_support::ClearAllDatabases();594 }595 596 void DRTTestRunner::setDatabaseQuota(const CppArgumentList& arguments, CppVariant* result)597 {598 result->setNull();599 if ((arguments.size() >= 1) && arguments[0].isNumber())600 webkit_support::SetDatabaseQuota(arguments[0].toInt32());601 }602 603 585 void DRTTestRunner::setPOSIXLocale(const CppArgumentList& arguments, CppVariant* result) 604 586 { -
trunk/Tools/DumpRenderTree/chromium/DRTTestRunner.h
r139722 r139776 132 132 void displayInvalidatedRegion(const CppArgumentList&, CppVariant*); 133 133 134 // Clears all databases.135 void clearAllDatabases(const CppArgumentList&, CppVariant*);136 // Sets the default quota for all origins137 void setDatabaseQuota(const CppArgumentList&, CppVariant*);138 139 134 // Calls setlocale(LC_ALL, ...) for a specified locale. 140 135 // Resets between tests. -
trunk/Tools/DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h
r139549 r139776 86 86 virtual void closeDevTools() { } 87 87 virtual void evaluateInWebInspector(long, const std::string&) { } 88 virtual void clearAllDatabases() { } 89 virtual void setDatabaseQuota(int) { } 88 90 }; 89 91 -
trunk/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp
r139722 r139776 179 179 bindMethod("closeWebInspector", &TestRunner::closeWebInspector); 180 180 bindMethod("evaluateInWebInspector", &TestRunner::evaluateInWebInspector); 181 bindMethod("clearAllDatabases", &TestRunner::clearAllDatabases); 182 bindMethod("setDatabaseQuota", &TestRunner::setDatabaseQuota); 181 183 182 184 // Properties. … … 244 246 WebFontRendering::setSubpixelPositioning(false); 245 247 #endif 248 249 // Reset the default quota for each origin to 5MB 250 m_delegate->setDatabaseQuota(5 * 1024 * 1024); 246 251 247 252 m_dumpEditingCallbacks = false; … … 1296 1301 } 1297 1302 1303 void TestRunner::clearAllDatabases(const CppArgumentList& arguments, CppVariant* result) 1304 { 1305 result->setNull(); 1306 m_delegate->clearAllDatabases(); 1307 } 1308 1309 void TestRunner::setDatabaseQuota(const CppArgumentList& arguments, CppVariant* result) 1310 { 1311 result->setNull(); 1312 if ((arguments.size() >= 1) && arguments[0].isNumber()) 1313 m_delegate->setDatabaseQuota(arguments[0].toInt32()); 1314 } 1315 1298 1316 void TestRunner::dumpEditingCallbacks(const CppArgumentList&, CppVariant* result) 1299 1317 { -
trunk/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.h
r139722 r139776 332 332 void evaluateInWebInspector(const CppArgumentList&, CppVariant*); 333 333 334 // Clears all databases. 335 void clearAllDatabases(const CppArgumentList&, CppVariant*); 336 // Sets the default quota for all origins 337 void setDatabaseQuota(const CppArgumentList&, CppVariant*); 338 334 339 /////////////////////////////////////////////////////////////////////////// 335 340 // Properties -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r139627 r139776 1070 1070 } 1071 1071 1072 void WebViewHost::clearAllDatabases() 1073 { 1074 webkit_support::ClearAllDatabases(); 1075 } 1076 1077 void WebViewHost::setDatabaseQuota(int quota) 1078 { 1079 webkit_support::SetDatabaseQuota(quota); 1080 } 1081 1072 1082 // Public functions ----------------------------------------------------------- 1073 1083 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.h
r139627 r139776 155 155 virtual void closeDevTools() OVERRIDE; 156 156 virtual void evaluateInWebInspector(long, const std::string&) OVERRIDE; 157 virtual void clearAllDatabases() OVERRIDE; 158 virtual void setDatabaseQuota(int) OVERRIDE; 157 159 158 160 // NavigationHost
Note: See TracChangeset
for help on using the changeset viewer.