Allow only one bookmark to be added for multiple fast starring
[chromium-blink-merge.git] / chrome / browser / resources / chromeos / login / test_util.js
blob5a0399ef236e95c2d4396691a7b0d285116a2d1d
1 // Copyright 2014 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.
5 cr.define('cr', function() {
6 function ErrorStore() {
7 var self = this;
8 window.addEventListener('error', function(e) {
9 self.store_.push(e);
10 });
13 cr.addSingletonGetter(ErrorStore);
15 ErrorStore.prototype = {
16 store_: [],
18 get length() {
19 return this.store_.length;
23 return {
24 ErrorStore: ErrorStore,
26 });
28 cr.ErrorStore.getInstance();