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

Unified Diff: dart/site/try/index.html

Issue 532953003: Disable Google Analytics in automated tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | dart/tests/try/web/end_to_end_test.dart » ('j') | dart/tests/try/web/end_to_end_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/index.html
diff --git a/dart/site/try/index.html b/dart/site/try/index.html
index 0a42cad4722513472c24d5474e8bdfafa4d89fd0..d0890c5fbb00fbf9898bbbe5a79a33431340fc51 100644
--- a/dart/site/try/index.html
+++ b/dart/site/try/index.html
@@ -190,6 +190,7 @@ body /deep/ .hazed-suggestion:after {
<!-- Enable Google Analytics -->
<script type="text/javascript">
+if (document.cookie.split(';').indexOf('org-trydart-AutomatedTest=true') != -1) {
ahe 2014/09/04 11:07:17 If I add: window.parent && window.parent.postMess
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-26406144-2']);
_gaq.push(['_trackPageview']);
@@ -199,6 +200,7 @@ body /deep/ .hazed-suggestion:after {
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>
<body>
« no previous file with comments | « no previous file | dart/tests/try/web/end_to_end_test.dart » ('j') | dart/tests/try/web/end_to_end_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698