| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 3 Use of this source code is governed by a BSD-style license that can be | |
| 4 found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 // Automation utilities for running the V8 Benchmark as a UI test. | |
| 8 | |
| 9 function Automation() { | |
| 10 this.score = ''; | |
| 11 this.results = {}; | |
| 12 } | |
| 13 | |
| 14 Automation.prototype.SetDone = function() { | |
| 15 document.cookie = '__done=1; path=/'; | |
| 16 } | |
| 17 | |
| 18 Automation.prototype.SetScore = function (score) { | |
| 19 this.score = score; | |
| 20 } | |
| 21 | |
| 22 Automation.prototype.GetScore = function() { | |
| 23 return this.score; | |
| 24 } | |
| 25 | |
| 26 Automation.prototype.AddResult = function(name, result) { | |
| 27 this.results[name] = result; | |
| 28 } | |
| 29 | |
| 30 Automation.prototype.GetResults = function() { | |
| 31 return this.results; | |
| 32 } | |
| 33 | |
| 34 automation = new Automation(); | |
| OLD | NEW |