OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 // Anonymous namespace | 5 // Anonymous namespace |
6 (function() { | 6 (function() { |
7 | 7 |
8 /** | 8 /** |
9 * Checks the display on the DNS tab against the information it should be | 9 * Checks the display on the DNS tab against the information it should be |
10 * displaying. | 10 * displaying. |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 'somewhere.com', '1.2.3.4', 0, false)); | 248 'somewhere.com', '1.2.3.4', 0, false)); |
249 taskQueue.addTask(new AddCacheEntryTask( | 249 taskQueue.addTask(new AddCacheEntryTask( |
250 'nowhere.com', '', NetError.NAME_NOT_RESOLVED, true)); | 250 'nowhere.com', '', NetError.NAME_NOT_RESOLVED, true)); |
251 taskQueue.addTask(new ClearCacheTask()); | 251 taskQueue.addTask(new ClearCacheTask()); |
252 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com')); | 252 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com')); |
253 taskQueue.addTask(new WaitForEntryDestructionTask('nowhere.com')); | 253 taskQueue.addTask(new WaitForEntryDestructionTask('nowhere.com')); |
254 } | 254 } |
255 taskQueue.run(true); | 255 taskQueue.run(true); |
256 }); | 256 }); |
257 | 257 |
| 258 netInternalsTest.test('netInternalsDnsViewIncognitoClears', function() { |
| 259 netInternalsTest.switchToView('dns'); |
| 260 var taskQueue = new netInternalsTest.TaskQueue(true); |
| 261 taskQueue.addTask(netInternalsTest.getCreateIncognitoBrowserTask()); |
| 262 taskQueue.addTask(new AddCacheEntryTask( |
| 263 'somewhere.com', '1.2.3.4', 0, true)); |
| 264 taskQueue.addTask(netInternalsTest.getCloseIncognitoBrowserTask()); |
| 265 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com')); |
| 266 taskQueue.run(true); |
| 267 }); |
| 268 |
258 })(); // Anonymous namespace | 269 })(); // Anonymous namespace |
OLD | NEW |