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

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

Issue 148293018: Docserver: Make the .html extension unnecessary for content pages, for example, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yoz Created 6 years, 10 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/patch_servlet_test.py
diff --git a/chrome/common/extensions/docs/server2/patch_servlet_test.py b/chrome/common/extensions/docs/server2/patch_servlet_test.py
index 022b150798f6c0a0aa01abf53defbe7a6666ba3f..0dcebaa29ba8b8d44681f07cc7917427a384796d 100755
--- a/chrome/common/extensions/docs/server2/patch_servlet_test.py
+++ b/chrome/common/extensions/docs/server2/patch_servlet_test.py
@@ -129,17 +129,16 @@ class PatchServletTest(unittest.TestCase):
# extensions/runtime.html is removed in the patch, should redirect to the
# apps version.
- self._AssertRedirect('extensions/runtime.html', issue,
- 'apps/runtime.html')
+ self._AssertRedirect('extensions/runtime', issue, 'apps/runtime')
# apps/runtime.html is not removed.
- self._RenderAndAssertEqual('apps/runtime.html', issue)
+ self._RenderAndAssertEqual('apps/runtime', issue)
# test_foo.html is added in the patch.
- self._AssertOk('extensions/test_foo.html', issue)
+ self._AssertOk('extensions/test_foo', issue)
# Invalid issue number results in a 404.
- self._AssertNotFound('extensions/index.html', '11111')
+ self._AssertNotFound('extensions/index', '11111')
def testXssRedirect(self):
def is_redirect(from_host, from_path, to_url):
« no previous file with comments | « chrome/common/extensions/docs/server2/integration_test.py ('k') | chrome/common/extensions/docs/server2/path_canonicalizer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698