Index: chrome/common/extensions/docs/server2/document_renderer_test.py |
diff --git a/chrome/common/extensions/docs/server2/document_renderer_test.py b/chrome/common/extensions/docs/server2/document_renderer_test.py |
index 757f4722691fc72db448960c662bca2a80062fb3..b79aec948570f43260704221965e74e54c7846bf 100755 |
--- a/chrome/common/extensions/docs/server2/document_renderer_test.py |
+++ b/chrome/common/extensions/docs/server2/document_renderer_test.py |
@@ -116,14 +116,15 @@ class DocumentRendererUnittest(unittest.TestCase): |
self.assertEqual(['Expected a title'], warnings) |
def testInvalidRef(self): |
- # There needs to be more than 100 characters between the invalid ref |
- # and the next ref |
+ # DocumentRenderer attempts to detect unclosed $(ref:...) tags by limiting |
+ # how far it looks ahead. Lorem Ipsum should be long enough to trigger that. |
not at google - send to devlin
2014/03/28 23:31:36
I actually meant to iclude lorem ipsum here, sorry
ahernandez
2014/03/28 23:34:18
You just want it as a variable at the top of the t
|
document = ('An invalid $(ref:foo.foo_t3 a title with some long ' |
- 'text containing a valid reference pointing to ' |
+ 'text containing a valid reference pointing to a thing called ' |
'$(ref:baz.baz_e1) here') |
expected_document = ('An invalid $(ref:foo.foo_t3 a title with some long ' |
- 'text containing a valid reference pointing to <a' |
- ' href=#type-baz_e1>baz.baz_e1</a> here') |
+ 'text containing a valid reference pointing to a ' |
+ 'thing called <a href=#type-baz_e1>baz.baz_e1</a> ' |
+ 'here') |
path = 'some/path/to/document_api.html' |
text, warnings = self._renderer.Render(document, path) |