WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
170206
webkitpy: Add IOSDevicePort and IOSPort tests
https://bugs.webkit.org/show_bug.cgi?id=170206
Summary
webkitpy: Add IOSDevicePort and IOSPort tests
Jonathan Bedard
Reported
2017-03-28 15:01:06 PDT
We only have unit tests for IOSSimulatorPort. Add unit tests for IOSDevicePort and IOSPort.
Attachments
Patch
(18.21 KB, patch)
2017-03-28 15:03 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch
(20.04 KB, patch)
2017-03-29 08:30 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Patch for landing
(20.07 KB, patch)
2017-03-29 10:05 PDT
,
Jonathan Bedard
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-03-28 15:02:31 PDT
<
rdar://problem/31308364
>
Jonathan Bedard
Comment 2
2017-03-28 15:03:10 PDT
Created
attachment 305647
[details]
Patch
Alexey Proskuryakov
Comment 3
2017-03-28 16:27:41 PDT
Comment on
attachment 305647
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=305647&action=review
r=me, please fix class naming.
> Tools/Scripts/webkitpy/port/ios_device_unittest.py:27 > +class iosDeviceTest(ios_testcase.iOSTest):
Although there is one test class named like this, the WebKit style calls for "IOSDeviceTest" as the name. Most iOS classes in webkitpy follow the style.
> Tools/Scripts/webkitpy/port/ios_device_unittest.py:28 > + os_name = 'ios-device'
This shows a shortcoming in the code - the OS name is iOS, not iOS Device.
> Tools/Scripts/webkitpy/port/ios_device_unittest.py:31 > + port_maker = IOSDevicePort
Maker is a strange name, there is no pattern like this that I'm aware of.
> Tools/Scripts/webkitpy/port/ios_device_unittest.py:32 > + is_simulator = True
Wut?
> Tools/Scripts/webkitpy/port/ios_device_unittest.py:36 > + port.set_option('child_processes', 1)
This is worth explaining if it's needed (is it?)
> Tools/Scripts/webkitpy/port/ios_simulator_unittest.py:32 > +class iosSimulatorTest(ios_testcase.iOSTest):
Ditto w.r.t. naming.
Jonathan Bedard
Comment 4
2017-03-29 08:30:53 PDT
Created
attachment 305735
[details]
Patch
Jonathan Bedard
Comment 5
2017-03-29 10:05:42 PDT
Created
attachment 305752
[details]
Patch for landing
WebKit Commit Bot
Comment 6
2017-03-29 10:22:05 PDT
Comment on
attachment 305752
[details]
Patch for landing Clearing flags on attachment: 305752 Committed
r214542
: <
http://trac.webkit.org/changeset/214542
>
WebKit Commit Bot
Comment 7
2017-03-29 10:22:08 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug