summaryrefslogtreecommitdiffstats
path: root/chrome/test/perf/kraken_benchmark_uitest.js
blob: 36511b068fec214e27e0cc66d3b7a95ff8f75364 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
  Copyright (c) 2012 The Chromium Authors. All rights reserved.
  Use of this source code is governed by a BSD-style license that can be
  found in the LICENSE file.
*/

var automation = {
  setDone: function() {
    document.cookie = '__done=1; path=/';
  },

  getResults: function() {
    results = {'score': String(mean)};
    for (category in categoryMeans) {
      results[category] = String(categoryMeans[category]);
      for (test in testMeansByCategory[category]) {
        results[test] = String(testMeansByCategory[category][test]);
      }
    }
    return JSON.stringify(results);
  }
};