Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / tabs / no_events / test.js
blob4ebc2890b893a9ca4d38bd3efb590dd88ba6deba
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.
5 var errors = 0;
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) {
14 if (errors == 0)
15 chrome.test.notifyPass();
16 else
17 chrome.test.notifyFail('Unexpected chrome.tabs events');
18 });