OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 var errors = 0; |
| 6 |
| 7 function errorListener() { ++errors; } |
| 8 |
| 9 chrome.tabs.onCreated.addListener(errorListener); |
| 10 chrome.tabs.onRemoved.addListener(errorListener); |
| 11 chrome.tabs.onUpdated.addListener(errorListener); |
| 12 |
| 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 }); |
OLD | NEW |