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

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: more efficient ordered_dict 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 471b07ed37fe9c6fdaaf31d6f1923f23887e8e60..33c94d257a6f0bc729fa3912cf4c3f73c27d72fd 100755
--- a/chrome/common/extensions/docs/server2/api_data_source_test.py
+++ b/chrome/common/extensions/docs/server2/api_data_source_test.py
@@ -17,7 +17,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):
@@ -64,7 +63,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