OLD | NEW |
| 1 // Copyright (c) 2011 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 |
1 // tabs api test: removing windows. | 5 // tabs api test: removing windows. |
2 // browser_tests.exe --gtest_filter=ExtensionApiTest.TabOnRemoved | 6 // browser_tests.exe --gtest_filter=ExtensionApiTest.TabOnRemoved |
3 | 7 |
4 // We have a bunch of places where we need to remember some state from one | 8 // We have a bunch of places where we need to remember some state from one |
5 // test (or setup code) to subsequent tests. | 9 // test (or setup code) to subsequent tests. |
6 var firstWindowId = null; | 10 var firstWindowId = null; |
7 var secondWindowId = null; | 11 var secondWindowId = null; |
8 | 12 |
9 var windowEventsWindow = null; | 13 var windowEventsWindow = null; |
10 var moveTabIds = {}; | 14 var moveTabIds = {}; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 }); | 72 }); |
69 | 73 |
70 chrome.test.listenOnce(chrome.tabs.onRemoved, | 74 chrome.test.listenOnce(chrome.tabs.onRemoved, |
71 function(tabId, removeInfo) { | 75 function(tabId, removeInfo) { |
72 assertEq(true, removeInfo.isWindowClosing); | 76 assertEq(true, removeInfo.isWindowClosing); |
73 }); | 77 }); |
74 | 78 |
75 chrome.windows.remove(windowEventsWindow.id, pass()); | 79 chrome.windows.remove(windowEventsWindow.id, pass()); |
76 } | 80 } |
77 ]); | 81 ]); |
OLD | NEW |