Chromium Code Reviews| Index: chrome/test/data/media/html/utils.js |
| diff --git a/chrome/test/data/media/html/utils.js b/chrome/test/data/media/html/utils.js |
| index 7dff4bab7d66dce4fb7f86a73a17d439c884d93f..e0268635e3d6ee47644631b394e08746179aba90 100644 |
| --- a/chrome/test/data/media/html/utils.js |
| +++ b/chrome/test/data/media/html/utils.js |
| @@ -27,3 +27,33 @@ var QueryString = function () { |
| return params; |
| } (); |
| + |
| + |
| + |
| +Timer.prototype = { |
| + start: function() { |
| + this.start_ = new Date().getTime(); |
| + }, |
| + |
| + stop: function() { |
| + var delta = new Date().getTime() - this.start_; |
| + this.times_.push(delta); |
| + return delta; |
| + }, |
| + |
| + reset: function() { |
| + this.start_ = 0; |
| + this.times_ = []; |
| + } |
| +} |
| + |
| +function Timer() { |
| + this.reset(); |
| + //this.start_ = 0; |
|
DaleCurtis
2012/04/19 19:42:10
Comments?
shadi
2012/04/20 00:17:47
Done.
|
| + //this.times_ = []; |
| +} |
| + |
| +function GenerateUniqueURL(src) { |
| + var ch = src.indexOf('?') >= 0 ? '&' : '?'; |
| + return src + ch + 't=' + (new Date()).getTime(); |
| +} |