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

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

Issue 10797039: Extensions Docs Server: devtools API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move parsing logic into utils Created 8 years, 5 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/handlebar_dict_generator_test.py
diff --git a/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py b/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py
index 594dc9020952c372d7c0dba347b240d3956e1a55..2d43fc5f9495dede2d978accbaa02c274c4d50a5 100755
--- a/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py
+++ b/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py
@@ -7,8 +7,8 @@ import json
import os
import unittest
+from docs_server_utils import GetLinkToRefType
from handlebar_dict_generator import HandlebarDictGenerator
-from handlebar_dict_generator import _GetLinkToRefType
from handlebar_dict_generator import _FormatValue
import third_party.json_schema_compiler.json_comment_eater as comment_eater
import third_party.json_schema_compiler.model as model
@@ -41,13 +41,13 @@ class DictGeneratorTest(unittest.TestCase):
self._GenerateTest('test_file.json')
def testGetLinkToRefType(self):
- link = _GetLinkToRefType('truthTeller', 'liar.Tab')
+ link = GetLinkToRefType('truthTeller', 'liar.Tab')
self.assertEquals('liar.html#type-Tab', link['href'])
self.assertEquals('liar.Tab', link['text'])
- link = _GetLinkToRefType('truthTeller', 'Tab')
+ link = GetLinkToRefType('truthTeller', 'Tab')
self.assertEquals('#type-Tab', link['href'])
self.assertEquals('Tab', link['text'])
- link = _GetLinkToRefType('nay', 'lies.chrome.bookmarks.Tab')
+ link = GetLinkToRefType('nay', 'lies.chrome.bookmarks.Tab')
self.assertEquals('lies.chrome.bookmarks.html#type-Tab', link['href'])
self.assertEquals('lies.chrome.bookmarks.Tab', link['text'])

Powered by Google App Engine
This is Rietveld 408576698