Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: chrome/test/data/extensions/api_test/tabs/on_removed/test.js

Issue 8762014: Move another set of extension tests to manifest_version 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698