webkitpy: Ignore case when comparing device types
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2018 21:02:46 +0000 (21:02 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2018 21:02:46 +0000 (21:02 +0000)
commit96b19810f7635ba336d8d5cad503a085e948f8bb
treea28212a21a06c10bb1a5f7e9494310b667021736
parent8ab672138c68ad540b7d5c229d3d2f5376d8c0d5
webkitpy: Ignore case when comparing device types
https://bugs.webkit.org/show_bug.cgi?id=192409
<rdar://problem/46491558>

Reviewed by Lucas Forschler.

This allows DeviceTypes constructed with lowercase strings to correctly compare
against DeviceTypes coming from the simulator runtime.

* Scripts/webkitpy/xcode/device_type.py:
(DeviceType.__eq__):
(DeviceType.__contains__):
* Scripts/webkitpy/xcode/device_type_unittest.py:
(DeviceTypeTest):
(DeviceTypeTest.test_comparsion_lower_case):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/webkitpy/xcode/device_type.py
Tools/Scripts/webkitpy/xcode/device_type_unittest.py