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

Unified Diff: chrome/common/extensions/docs/server2/manifest_data_source_test.py

Issue 16410002: Docserver manifest follow up (rewrite) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gen-manifest-try-2
Patch Set: Small URL change Created 7 years, 6 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/manifest_data_source_test.py
diff --git a/chrome/common/extensions/docs/server2/manifest_data_source_test.py b/chrome/common/extensions/docs/server2/manifest_data_source_test.py
index 3f971b6b5d0cdab9613cd633443886f99dc5bbcd..4b21fc70ec32b373cf465567f8e4c5ccb55cb8ea 100755
--- a/chrome/common/extensions/docs/server2/manifest_data_source_test.py
+++ b/chrome/common/extensions/docs/server2/manifest_data_source_test.py
@@ -42,13 +42,16 @@ file_system = TestFileSystem({
},
'rec1': {
'extension_types': ['platform_app', 'extension']
+ },
+ 'req0.opt2': {
+ 'extension_types': ['extension']
}
}),
"manifest.json": json.dumps({
'required': [
{
'name': 'req0',
- 'example': 'Extension'
+ 'example': {'value': 'Extension'}
},
{'name': 'req1'}
],
@@ -62,7 +65,8 @@ file_system = TestFileSystem({
],
'optional': [
{'name': 'opt0'},
- {'name': 'opt1'}
+ {'name': 'opt1'},
+ {'name': 'req0.opt2'}
]
})
})
@@ -73,7 +77,10 @@ class ManifestDataSourceTest(unittest.TestCase):
'required': [
{
'name': 'req0',
- 'example': 'Extension'
+ 'example': {'value': 'Extension'},
+ 'subdoc': [
+ {'name': 'opt2'}
+ ]
},
{'name': 'req1'}
],
@@ -97,7 +104,7 @@ class ManifestDataSourceTest(unittest.TestCase):
'required': [
{
'name': 'req0',
- 'example': 'Application'
+ 'example': {'value': 'Application'}
},
{'name': 'req1'}
],

Powered by Google App Engine
This is Rietveld 408576698