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

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

Issue 10826024: Extensions Docs Server: Proper $ref handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 db7fba46c39fd81e3e04d7a10e356142f626d2c4..f641497d0ef06e870fe967f64f93478acc63699e 100755
--- a/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py
+++ b/chrome/common/extensions/docs/server2/handlebar_dict_generator_test.py
@@ -33,13 +33,13 @@ class DictGeneratorTest(unittest.TestCase):
def testGetLinkToRefType(self):
link = _GetLinkToRefType('truthTeller', 'liar.Tab')
self.assertEquals(link['href'], 'liar.html#type-Tab')
- self.assertEquals(link['text'], 'Tab')
+ self.assertEquals(link['text'], 'liar.Tab')
link = _GetLinkToRefType('truthTeller', 'Tab')
- self.assertEquals(link['href'], 'truthTeller.html#type-Tab')
+ self.assertEquals(link['href'], '#type-Tab')
self.assertEquals(link['text'], 'Tab')
link = _GetLinkToRefType('nay', 'lies.chrome.bookmarks.Tab')
- self.assertEquals(link['href'], 'lies.html#type-chrome.bookmarks.Tab')
- self.assertEquals(link['text'], 'chrome.bookmarks.Tab')
+ self.assertEquals(link['href'], 'lies.chrome.bookmarks.html#type-Tab')
+ self.assertEquals(link['text'], 'lies.chrome.bookmarks.Tab')
def testFormatValue(self):
self.assertEquals('1,234,567', _FormatValue(1234567))

Powered by Google App Engine
This is Rietveld 408576698