Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1792)

Side by Side Diff: chrome/common/extensions/docs/server2/api_data_source_test.py

Issue 386443003: Docserver: Add 'deprecated since' message for API nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/api_data_source.py ('k') | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698