1// Copyright (c) 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5'use strict';
6
7base.exportTo('tracing.analysis', function() {
8
9  function StubAnalysisTable() {
10    this.ownerDocument_ = document;
11    this.nodes_ = [];
12  }
13
14  StubAnalysisTable.prototype = {
15    __proto__: Object.protoype,
16
17    get ownerDocument() {
18      return this.ownerDocument_;
19    },
20
21    appendChild: function(node) {
22      this.nodes_.push(node);
23    },
24
25    get lastNode() {
26      return this.nodes_.pop();
27    },
28
29    get nodeCount() {
30      return this.nodes_.length;
31    }
32
33  };
34
35  return {
36    StubAnalysisTable: StubAnalysisTable
37  };
38});
39
40