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

Side by Side Diff: telemetry/third_party/web-page-replay/deterministic.js

Issue 2210063003: Rename third_party/webpagereplay to third_party/web-page-replay (Closed) Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 (function () { 1 (function () {
2 var random_count = 0; 2 var random_count = 0;
3 var random_count_threshold = 25; 3 var random_count_threshold = 25;
4 var random_seed = 0.462; 4 var random_seed = 0.462;
5 Math.random = function() { 5 Math.random = function() {
6 random_count++; 6 random_count++;
7 if (random_count > random_count_threshold){ 7 if (random_count > random_count_threshold){
8 random_seed += 0.1; 8 random_seed += 0.1;
9 random_count = 1; 9 random_count = 1;
10 } 10 }
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 return new Date().getTime(); 53 return new Date().getTime();
54 }; 54 };
55 orig_date.prototype.getTimezoneOffset = function() { 55 orig_date.prototype.getTimezoneOffset = function() {
56 var dst2010Start = 1268560800000; 56 var dst2010Start = 1268560800000;
57 var dst2010End = 1289120400000; 57 var dst2010End = 1289120400000;
58 if (this.getTime() >= dst2010Start && this.getTime() < dst2010End) 58 if (this.getTime() >= dst2010Start && this.getTime() < dst2010End)
59 return 420; 59 return 420;
60 return 480; 60 return 480;
61 }; 61 };
62 })(); 62 })();
OLDNEW
« no previous file with comments | « telemetry/third_party/web-page-replay/daemonserver.py ('k') | telemetry/third_party/web-page-replay/dnsproxy.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698