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

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

Issue 68873003: Docserver: Serve docs out of src/ not src/chrome/common/extensions. This allows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix samples Created 7 years, 1 month 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/test_servlet.py
diff --git a/chrome/common/extensions/docs/server2/test_servlet.py b/chrome/common/extensions/docs/server2/test_servlet.py
index 5533ebb09b454397e117940be8737ac9535ada31..fde8781432fb7a0667e6f3e786789f3160a4af72 100644
--- a/chrome/common/extensions/docs/server2/test_servlet.py
+++ b/chrome/common/extensions/docs/server2/test_servlet.py
@@ -2,11 +2,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from extensions_paths import PUBLIC_TEMPLATES
from instance_servlet import (
InstanceServlet, InstanceServletRenderServletDelegate)
from link_error_detector import LinkErrorDetector, StringifyBrokenLinks
from servlet import Request, Response, Servlet
-import svn_constants
+
class BrokenLinkTester(object):
'''Run link error detector tests.
@@ -15,7 +16,7 @@ class BrokenLinkTester(object):
self.link_error_detector = LinkErrorDetector(
server_instance.host_file_system_provider.GetTrunk(),
renderer,
- svn_constants.PUBLIC_TEMPLATE_PATH,
+ PUBLIC_TEMPLATES,
root_pages=('extensions/index.html', 'apps/about_apps.html'))
def TestBrokenLinks(self):
@@ -32,6 +33,7 @@ class BrokenLinkTester(object):
'Warning: Found %d orphaned pages:\n%s' % (
len(orphaned_pages), '\n'.join(orphaned_pages)))
+
class TestServlet(Servlet):
'''Runs tests against the live server. Supports running all broken link
detection tests, in parts or all at once.
« no previous file with comments | « chrome/common/extensions/docs/server2/test_file_system_test.py ('k') | chrome/common/extensions/docs/server2/test_util.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698