1 // Copyright 2015 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.
7 function errorListener() { ++errors
; }
9 chrome
.tabs
.onCreated
.addListener(errorListener
);
10 chrome
.tabs
.onRemoved
.addListener(errorListener
);
11 chrome
.tabs
.onUpdated
.addListener(errorListener
);
13 chrome
.test
.sendMessage('ready', function (message
) {
15 chrome
.test
.notifyPass();
17 chrome
.test
.notifyFail('Unexpected chrome.tabs events');