| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 var firstWindowId; | 5 var firstWindowId; |
| 6 var secondWindowId; | 6 var secondWindowId; |
| 7 var moveTabIds = {}; | 7 var moveTabIds = {}; |
| 8 var kChromeUINewTabURL = "chrome://newtab/"; | 8 var kChromeUINewTabURL = "chrome-search://local-ntp/local-ntp.html"; |
| 9 | 9 |
| 10 chrome.test.runTests([ | 10 chrome.test.runTests([ |
| 11 // Do a series of moves and removes so that we get the following | 11 // Do a series of moves and removes so that we get the following |
| 12 // | 12 // |
| 13 // Before: | 13 // Before: |
| 14 // Window1: (newtab),a,b,c,d,e | 14 // Window1: (newtab),a,b,c,d,e |
| 15 // Window2: (newtab) | 15 // Window2: (newtab) |
| 16 // | 16 // |
| 17 // After moveToInvalidTab: | 17 // After moveToInvalidTab: |
| 18 // Window1: (newtab) | 18 // Window1: (newtab) |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 chrome.tabs.move(tabs[0].id, | 164 chrome.tabs.move(tabs[0].id, |
| 165 {"windowId": chrome.windows.WINDOW_ID_CURRENT, | 165 {"windowId": chrome.windows.WINDOW_ID_CURRENT, |
| 166 "index": 0}, | 166 "index": 0}, |
| 167 pass(function(tab) { | 167 pass(function(tab) { |
| 168 assertEq(win.id, tab.windowId); | 168 assertEq(win.id, tab.windowId); |
| 169 })); | 169 })); |
| 170 })); | 170 })); |
| 171 })); | 171 })); |
| 172 } | 172 } |
| 173 ]); | 173 ]); |
| OLD | NEW |