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

Unified Diff: tools/json_schema_compiler/model_test.py

Issue 10108005: Make json_schema_compiler remove 'nocompile' nodes from JSON at the JSON level (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yoz Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/json_schema_compiler/model.py ('k') | tools/json_schema_compiler/previewserver.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/model_test.py
diff --git a/tools/json_schema_compiler/model_test.py b/tools/json_schema_compiler/model_test.py
index d91acb5371b8405ff48991622fd54f949071e503..10f865664c31eb3b106516fd0e0032d0cdc9a0bc 100755
--- a/tools/json_schema_compiler/model_test.py
+++ b/tools/json_schema_compiler/model_test.py
@@ -27,26 +27,10 @@ class ModelTest(unittest.TestCase):
self.assertEquals(3, len(self.model.namespaces))
self.assertTrue(self.permissions)
- def testNamespaceNoCompile(self):
- self.permissions_json[0]['namespace'] = 'something'
- self.permissions_json[0]['nocompile'] = True
- self.model.AddNamespace(self.permissions_json[0],
- 'path/to/something.json')
- self.assertEquals(3, len(self.model.namespaces))
-
def testHasFunctions(self):
self.assertEquals(["contains", "getAll", "remove", "request"],
sorted(self.permissions.functions.keys()))
- def testFunctionNoCompile(self):
- # tabs.json has 2 functions marked as nocompile (connect, sendRequest)
- self.assertEquals(["captureVisibleTab", "create", "detectLanguage",
- "executeScript", "get", "getAllInWindow", "getCurrent",
- "getSelected", "highlight", "insertCSS", "move", "query", "reload",
- "remove", "update"],
- sorted(self.tabs.functions.keys())
- )
-
def testHasTypes(self):
self.assertEquals(['Tab'], self.tabs.types.keys())
self.assertEquals(['Permissions'], self.permissions.types.keys())
« no previous file with comments | « tools/json_schema_compiler/model.py ('k') | tools/json_schema_compiler/previewserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698