diff options
| author | Igor Minar | 2013-08-16 10:56:04 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-08-16 11:01:50 -0700 |
| commit | 35d4993c3dc9f0068b77bb09b7ae2ec979bdeaad (patch) | |
| tree | fb5aec30d768093163dd6ddaae8918d7c59148b5 | |
| parent | 705404ff8e3187dcc23b1fbafd60a67eaca26c7d (diff) | |
| download | angular.js-35d4993c3dc9f0068b77bb09b7ae2ec979bdeaad.tar.bz2 | |
chore(ngdocs): disable google analytics in e2e tests
GA is not needed during e2e tests, so I'm removing it to speed up the e2e test
suite.
See previous commits for more info.
| -rw-r--r-- | docs/src/templates/index.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/src/templates/index.html b/docs/src/templates/index.html index 4807019a..0788e415 100644 --- a/docs/src/templates/index.html +++ b/docs/src/templates/index.html @@ -119,11 +119,13 @@ _gaq.push(['_setAccount', 'UA-8594346-3']); _gaq.push(['_setDomainName', '.angularjs.org']); - (function() { - var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; - ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; - var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })(); + if (!window.RUNNING_IN_NG_TEST_RUNNER) { + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + } </script> </head> |
