From 705404ff8e3187dcc23b1fbafd60a67eaca26c7d Mon Sep 17 00:00:00 2001
From: Igor Minar
Date: Fri, 16 Aug 2013 10:53:18 -0700
Subject: chore(ngdocs): disable code prettification in e2e tests
code prettification is expensive and not needed for e2e tests, so I'm disabling
it to speed up the e2e test suite.
this is a temporary measure, see previous commit for more info.
---
docs/components/angular-bootstrap/bootstrap-prettify.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
(limited to 'docs/components/angular-bootstrap')
diff --git a/docs/components/angular-bootstrap/bootstrap-prettify.js b/docs/components/angular-bootstrap/bootstrap-prettify.js
index 9d8a7d23..169d232b 100644
--- a/docs/components/angular-bootstrap/bootstrap-prettify.js
+++ b/docs/components/angular-bootstrap/bootstrap-prettify.js
@@ -102,7 +102,12 @@ directive.prettyprint = ['reindentCode', function(reindentCode) {
//ensure that angular won't compile {{ curly }} values
html = html.replace(/\{\{/g, '{{')
.replace(/\}\}/g, '}}');
- element.html(window.prettyPrintOne(reindentCode(html), undefined, true));
+ if (window.RUNNING_IN_NG_TEST_RUNNER) {
+ element.html(html);
+ }
+ else {
+ element.html(window.prettyPrintOne(reindentCode(html), undefined, true));
+ }
}
};
}];
--
cgit v1.2.3