OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 | 5 |
6 import json | 6 import json |
7 import os | 7 import os |
8 import sys | 8 import sys |
9 import unittest | 9 import unittest |
10 | 10 |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 # Test property. | 362 # Test property. |
363 assertEquals('tabs.fakeTabsProperty2', | 363 assertEquals('tabs.fakeTabsProperty2', |
364 model_dict['properties'][2]['availability']['version']) | 364 model_dict['properties'][2]['availability']['version']) |
365 # Test function. | 365 # Test function. |
366 assertEquals('tabs.getCurrent', | 366 assertEquals('tabs.getCurrent', |
367 model_dict['functions'][0]['availability']['version']) | 367 model_dict['functions'][0]['availability']['version']) |
368 # Test event. | 368 # Test event. |
369 assertEquals('tabs.onActivated', | 369 assertEquals('tabs.onActivated', |
370 model_dict['events'][0]['availability']['version']) | 370 model_dict['events'][0]['availability']['version']) |
371 | 371 |
| 372 # Test a node that became deprecated. |
| 373 self.assertEquals({ |
| 374 'scheduled': None, |
| 375 'version': 26, |
| 376 'partial': 'handlebar chrome/common/extensions/docs/templates/' + |
| 377 'private/intro_tables/deprecated_message.html' |
| 378 }, model_dict['types'][2]['availability']) |
372 | 379 |
373 if __name__ == '__main__': | 380 if __name__ == '__main__': |
374 unittest.main() | 381 unittest.main() |
OLD | NEW |