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

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

Issue 11079010: Extensions Docs Server: Preserve JSON declaration order in extensions documentation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests! Created 8 years, 2 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/api_data_source_test.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source_test.py b/chrome/common/extensions/docs/server2/api_data_source_test.py
index 3e7e4c459708224d9fdd6a5af543a33c6c6c4ffd..7a76c73e9a5d0f73e44695023f97dcce6dcadcd3 100755
--- a/chrome/common/extensions/docs/server2/api_data_source_test.py
+++ b/chrome/common/extensions/docs/server2/api_data_source_test.py
@@ -14,7 +14,6 @@ from docs_server_utils import GetLinkToRefType
from file_system import FileNotFoundError
from in_memory_object_store import InMemoryObjectStore
from local_file_system import LocalFileSystem
-import third_party.json_schema_compiler.json_comment_eater as comment_eater
import third_party.json_schema_compiler.model as model
def _MakeLink(href, text):
@@ -61,7 +60,7 @@ class APIDataSourceTest(unittest.TestCase):
self.assertRaises(FileNotFoundError, data_source.get, 'junk')
def _LoadJSON(self, filename):
- return json.loads(comment_eater.Nom(self._ReadLocalFile(filename)))[0]
+ return json.loads(self._ReadLocalFile(filename))[0]
def _ToDictTest(self, filename):
expected_json = json.loads(self._ReadLocalFile('expected_' + filename))

Powered by Google App Engine
This is Rietveld 408576698