Changeset 51730 in webkit
- Timestamp:
- Dec 5, 2009 1:55:12 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51729 r51730 1 2009-12-05 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 [bzt] Implement ChromiumPort 6 https://bugs.webkit.org/show_bug.cgi?id=32182 7 8 * Scripts/modules/webkitport.py: 9 * Scripts/modules/webkitport_unittest.py: 10 1 11 2009-12-05 Adam Barth <abarth@webkit.org> 2 12 -
trunk/WebKitTools/Scripts/modules/webkitport.py
r51729 r51730 51 51 if options.port == "qt": 52 52 return QtPort 53 if options.port == "chromium": 54 return ChromiumPort 53 55 # FIXME: We should default to WinPort on Windows. 54 56 return MacPort … … 99 101 command.append("--qt") 100 102 return command 103 104 105 class ChromiumPort(WebKitPort): 106 @classmethod 107 def name(cls): 108 return "Chromium" 109 110 @classmethod 111 def flag(cls): 112 return "--port=chromium" 113 114 @classmethod 115 def update_webkit_command(cls): 116 command = WebKitPort.update_webkit_command() 117 command.append("--chromium") 118 return command 119 120 @classmethod 121 def build_webkit_command(cls): 122 command = WebKitPort.build_webkit_command() 123 command.append("--chromium") 124 return command -
trunk/WebKitTools/Scripts/modules/webkitport_unittest.py
r51253 r51730 30 30 import unittest 31 31 32 from modules.webkitport import WebKitPort, MacPort, QtPort 32 from modules.webkitport import WebKitPort, MacPort, QtPort, ChromiumPort 33 33 34 34 class WebKitPortTest(unittest.TestCase): … … 45 45 self.assertEquals(QtPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--qt"]) 46 46 47 def test_chromium_port(self): 48 self.assertEquals(ChromiumPort.name(), "Chromium") 49 self.assertEquals(ChromiumPort.flag(), "--port=chromium") 50 self.assertEquals(ChromiumPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")]) 51 self.assertEquals(ChromiumPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--chromium"]) 52 self.assertEquals(ChromiumPort.update_webkit_command(), [WebKitPort.script_path("update-webkit"), "--chromium"]) 53 47 54 48 55 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.