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

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

Issue 255473003: docserver: Adds "API scheduled for Chrome version..." text to dev and beta APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 expected_list = [ 135 expected_list = [
136 { 'title': 'Description', 136 { 'title': 'Description',
137 'content': [ 137 'content': [
138 { 'text': 'a test api' } 138 { 'text': 'a test api' }
139 ] 139 ]
140 }, 140 },
141 { 'title': 'Availability', 141 { 'title': 'Availability',
142 'content': [ 142 'content': [
143 { 'partial': 'handlebar chrome/common/extensions/docs/' + 143 { 'partial': 'handlebar chrome/common/extensions/docs/' +
144 'templates/private/intro_tables/stable_message.html', 144 'templates/private/intro_tables/stable_message.html',
145 'version': 5 145 'version': 5,
146 'scheduled': None
jshumway 2014/04/25 19:43:10 Add a test case where 'scheduled' is set
danielj41 2014/04/25 21:01:01 I added a new FakeAvailabilityFinder that returns
146 } 147 }
147 ] 148 ]
148 }, 149 },
149 { 'title': 'Permissions', 150 { 'title': 'Permissions',
150 'content': [ 151 'content': [
151 { 'class': 'override', 152 { 'class': 'override',
152 'text': '"tester"' 153 'text': '"tester"'
153 }, 154 },
154 { 'text': 'is an API for testing things.' } 155 { 'text': 'is an API for testing things.' }
155 ] 156 ]
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 # Check that the second event has addListener defined. 214 # Check that the second event has addListener defined.
214 self.assertEquals('noRules', dict_['events'][1]['name']) 215 self.assertEquals('noRules', dict_['events'][1]['name'])
215 self.assertEquals('add_rules_tester', dict_['name']) 216 self.assertEquals('add_rules_tester', dict_['name'])
216 self.assertEquals('noRules', dict_['events'][1]['name']) 217 self.assertEquals('noRules', dict_['events'][1]['name'])
217 self.assertEquals('callback', 218 self.assertEquals('callback',
218 dict_['events'][0]['byName']['addListener'][ 219 dict_['events'][0]['byName']['addListener'][
219 'parameters'][0]['name']) 220 'parameters'][0]['name'])
220 221
221 if __name__ == '__main__': 222 if __name__ == '__main__':
222 unittest.main() 223 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