summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions/docs')
-rwxr-xr-xchrome/common/extensions/docs/server2/api_models_test.py17
-rwxr-xr-xchrome/common/extensions/docs/server2/platform_bundle_test.py2
2 files changed, 8 insertions, 11 deletions
diff --git a/chrome/common/extensions/docs/server2/api_models_test.py b/chrome/common/extensions/docs/server2/api_models_test.py
index fe61e50..f9c863e4 100755
--- a/chrome/common/extensions/docs/server2/api_models_test.py
+++ b/chrome/common/extensions/docs/server2/api_models_test.py
@@ -39,8 +39,6 @@ _TEST_DATA = {
'_manifest_features.json': '{}',
'_permission_features.json': '{}',
'alarms.idl': ReadFile(CHROME_API, 'alarms.idl'),
- 'declarative_web_request.json': ReadFile(
- CHROME_API, 'declarative_web_request.json'),
'input_ime.json': ReadFile(CHROME_API, 'input_ime.json'),
'page_action.json': ReadFile(CHROME_API, 'page_action.json'),
},
@@ -95,13 +93,6 @@ class APIModelsTest(unittest.TestCase):
self.assertEqual('alarms', get_model_name('alarms'))
self.assertEqual('alarms', get_model_name('alarms.idl'))
self.assertEqual('alarms', get_model_name(CHROME_API + 'alarms.idl'))
- self.assertEqual('declarativeWebRequest',
- get_model_name('declarativeWebRequest'))
- self.assertEqual('declarativeWebRequest',
- get_model_name('declarative_web_request.json'))
- self.assertEqual('declarativeWebRequest',
- get_model_name(CHROME_API +
- 'declarative_web_request.json'))
self.assertEqual('input.ime', get_model_name('input.ime'))
self.assertEqual('input.ime', get_model_name('input_ime.json'))
self.assertEqual('input.ime',
@@ -113,6 +104,14 @@ class APIModelsTest(unittest.TestCase):
def testGetNonexistentModel(self):
self.assertRaises(FileNotFoundError,
+ self._api_models.GetModel('declarativeWebRequest').Get)
+ self.assertRaises(FileNotFoundError,
+ self._api_models.GetModel(
+ 'declarative_web_request.json').Get)
+ self.assertRaises(FileNotFoundError,
+ self._api_models.GetModel(
+ CHROME_API + 'declarative_web_request.json').Get)
+ self.assertRaises(FileNotFoundError,
self._api_models.GetModel('notfound').Get)
self.assertRaises(FileNotFoundError,
self._api_models.GetModel('notfound.json').Get)
diff --git a/chrome/common/extensions/docs/server2/platform_bundle_test.py b/chrome/common/extensions/docs/server2/platform_bundle_test.py
index 6e16974..fefecf6 100755
--- a/chrome/common/extensions/docs/server2/platform_bundle_test.py
+++ b/chrome/common/extensions/docs/server2/platform_bundle_test.py
@@ -33,8 +33,6 @@ _TEST_DATA = {
'_manifest_features.json': '{}',
'_permission_features.json': '{}',
'alarms.idl': ReadFile(CHROME_API, 'alarms.idl'),
- 'declarative_web_request.json': ReadFile(
- CHROME_API, 'declarative_web_request.json'),
'input_ime.json': ReadFile(CHROME_API, 'input_ime.json'),
'page_action.json': ReadFile(CHROME_API, 'page_action.json'),
},