2 Copyright (c) 2012 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.
7 // Automation utilities for running the V8 Benchmark as a UI test.
9 function Automation() {
14 Automation
.prototype.SetDone = function() {
15 console
.log("score: " + this.GetScore());
16 for (var result
in this.results
) {
17 if (this.results
.hasOwnProperty(result
))
18 console
.log(result
+ ": " + this.results
[result
]);
20 document
.cookie
= '__done=1; path=/';
23 Automation
.prototype.SetScore = function (score
) {
27 Automation
.prototype.GetScore = function() {
31 Automation
.prototype.AddResult = function(name
, result
) {
32 this.results
[name
] = result
;
35 Automation
.prototype.GetResults = function() {
39 automation
= new Automation();