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

Unified Diff: third_party/chrome/tools/json_schema_test.py

Issue 12300042: Update idlsync.py to pull in dependencies required for chrome api generation. (Closed) Base URL: git://github.com/dart-lang/bleeding_edge.git@master
Patch Set: From another checkout Created 7 years, 10 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: third_party/chrome/tools/json_schema_test.py
diff --git a/third_party/chrome/tools/json_schema_test.py b/third_party/chrome/tools/json_schema_test.py
deleted file mode 100755
index 860c5879b9d03f9cdfaba853f657d17a56b14bab..0000000000000000000000000000000000000000
--- a/third_party/chrome/tools/json_schema_test.py
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import json_schema
-import json_schema_test
-import unittest
-
-class JsonSchemaUnittest(unittest.TestCase):
- def testNocompile(self):
- compiled = [
- {
- "namespace": "compile",
- "functions": [],
- "types": {}
- },
-
- {
- "namespace": "functions",
- "functions": [
- {
- "id": "two"
- },
- {
- "id": "four"
- }
- ],
-
- "types": {
- "one": { "key": "value" }
- }
- },
-
- {
- "namespace": "types",
- "functions": [
- { "id": "one" }
- ],
- "types": {
- "two": {
- "key": "value"
- },
- "four": {
- "key": "value"
- }
- }
- },
-
- {
- "namespace": "nested",
- "properties": {
- "sync": {
- "functions": [
- {
- "id": "two"
- },
- {
- "id": "four"
- }
- ],
- "types": {
- "two": {
- "key": "value"
- },
- "four": {
- "key": "value"
- }
- }
- }
- }
- }
- ]
-
- schema = json_schema.CachedLoad('test/json_schema_test.json')
- self.assertEquals(compiled, json_schema.DeleteNocompileNodes(schema))
-
-if __name__ == '__main__':
- unittest.main()
« no previous file with comments | « third_party/chrome/tools/json_schema_compiler/util_cc_helper.py ('k') | third_party/chrome/tools/licenses.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698