| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 import os | 5 import os |
| 6 import sys | 6 import sys |
| 7 import unittest | 7 import unittest |
| 8 | 8 |
| 9 import api_schema_graph | 9 import api_schema_graph |
| 10 from availability_finder import AvailabilityFinder | 10 from availability_finder import AvailabilityFinder |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 ChannelInfo('stable', CANNED_BRANCHES[18], 18), | 125 ChannelInfo('stable', CANNED_BRANCHES[18], 18), |
| 126 self._avail_finder.GetApiAvailability('input.ime')) | 126 self._avail_finder.GetApiAvailability('input.ime')) |
| 127 | 127 |
| 128 # Testing API channel existence for _api_features.json. | 128 # Testing API channel existence for _api_features.json. |
| 129 # Listed as 'dev' on |beta|, 'dev' on |dev|. | 129 # Listed as 'dev' on |beta|, 'dev' on |dev|. |
| 130 self.assertEquals( | 130 self.assertEquals( |
| 131 ChannelInfo('dev', CANNED_BRANCHES[28], 28), | 131 ChannelInfo('dev', CANNED_BRANCHES[28], 28), |
| 132 self._avail_finder.GetApiAvailability('systemInfo.stuff')) | 132 self._avail_finder.GetApiAvailability('systemInfo.stuff')) |
| 133 # Listed as 'stable' on |beta|. | 133 # Listed as 'stable' on |beta|. |
| 134 self.assertEquals( | 134 self.assertEquals( |
| 135 ChannelInfo('beta', CANNED_BRANCHES[27], 27), | 135 ChannelInfo('beta', CANNED_BRANCHES[27], 27, 28), |
| 136 self._avail_finder.GetApiAvailability('systemInfo.cpu')) | 136 self._avail_finder.GetApiAvailability('systemInfo.cpu')) |
| 137 | 137 |
| 138 # Testing API channel existence for _manifest_features.json. | 138 # Testing API channel existence for _manifest_features.json. |
| 139 # Listed as 'trunk' on all channels. | 139 # Listed as 'trunk' on all channels. |
| 140 self.assertEquals( | 140 self.assertEquals( |
| 141 ChannelInfo('trunk', 'trunk', 'trunk'), | 141 ChannelInfo('trunk', 'trunk', 'trunk'), |
| 142 self._avail_finder.GetApiAvailability('sync')) | 142 self._avail_finder.GetApiAvailability('sync')) |
| 143 # No records of API until |trunk|. | 143 # No records of API until |trunk|. |
| 144 self.assertEquals( | 144 self.assertEquals( |
| 145 ChannelInfo('trunk', 'trunk', 'trunk'), | 145 ChannelInfo('trunk', 'trunk', 'trunk'), |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 self.assertEqual(lookup_result(False, None), | 313 self.assertEqual(lookup_result(False, None), |
| 314 availability_graph.Lookup('functions')) | 314 availability_graph.Lookup('functions')) |
| 315 self.assertEqual(lookup_result(False, None), | 315 self.assertEqual(lookup_result(False, None), |
| 316 availability_graph.Lookup('events', 'onActivated', | 316 availability_graph.Lookup('events', 'onActivated', |
| 317 'parameters', 'activeInfo', | 317 'parameters', 'activeInfo', |
| 318 'tabId')) | 318 'tabId')) |
| 319 | 319 |
| 320 | 320 |
| 321 if __name__ == '__main__': | 321 if __name__ == '__main__': |
| 322 unittest.main() | 322 unittest.main() |
| OLD | NEW |