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

Unified 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: Add test 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/api_data_source_test.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source_test.py b/chrome/common/extensions/docs/server2/api_data_source_test.py
index 3d0d7b8275125dce61c138c807cb8471ddd00ead..20dce9ccb60519e5a2e08b4caab68488af38bc62 100755
--- a/chrome/common/extensions/docs/server2/api_data_source_test.py
+++ b/chrome/common/extensions/docs/server2/api_data_source_test.py
@@ -342,6 +342,13 @@ class APIDataSourceWithNodeAvailabilityTest(unittest.TestCase):
assertEquals('tabs.getCurrent',
model_dict['functions'][0]['availability']['version'])
+ # Test a node that became deprecated.
+ self.assertEquals({
+ 'scheduled': None,
+ 'version': 26,
+ 'partial': 'handlebar chrome/common/extensions/docs/templates/' +
+ 'private/intro_tables/deprecated_message.html'
+ }, model_dict['types'][2]['availability'])
if __name__ == '__main__':
unittest.main()

Powered by Google App Engine
This is Rietveld 408576698