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

Issue 532953003: Disable Google Analytics in automated tests. (Closed)

Created:
6 years, 3 months ago by ahe
Modified:
6 years, 3 months ago
Reviewers:
lukechurch
CC:
reviews_dartlang.org, Johnni Winther, kasperl, sethladd, asandholm
Visibility:
Public.

Description

Disable Google Analytics in automated tests. R=lukechurch@google.com Committed: https://code.google.com/p/dart/source/detail?r=39863

Patch Set 1 #

Total comments: 2

Patch Set 2 : Test will fail if Analytics are enabled. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M dart/site/try/index.html View 1 2 chunks +3 lines, -0 lines 0 comments Download
M dart/tests/try/web/end_to_end_test.dart View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
ahe
I'm worried that our automated tests are skewing our usage statistics.
6 years, 3 months ago (2014-09-04 08:56:44 UTC) #2
lukechurch
Are we sure that the order of execution here is correct? That the document.cookie set ...
6 years, 3 months ago (2014-09-04 09:20:55 UTC) #3
ahe
https://codereview.chromium.org/532953003/diff/1/dart/site/try/index.html File dart/site/try/index.html (right): https://codereview.chromium.org/532953003/diff/1/dart/site/try/index.html#newcode193 dart/site/try/index.html:193: if (document.cookie.split(';').indexOf('org-trydart-AutomatedTest=true') != -1) { If I add: window.parent ...
6 years, 3 months ago (2014-09-04 11:07:17 UTC) #4
lukechurch
Yes, based on the whitelist posting that message to the log if analytics is enabled ...
6 years, 3 months ago (2014-09-04 11:18:21 UTC) #5
ahe
PTAL
6 years, 3 months ago (2014-09-04 12:03:20 UTC) #6
lukechurch
Fix looks good. Thanks. lgtm
6 years, 3 months ago (2014-09-04 12:04:57 UTC) #7
ahe
6 years, 3 months ago (2014-09-04 12:12:00 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 39863 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698