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

Side by Side Diff: chrome/test/data/webui/net_internals/dns_view.js

Issue 8892006: Fix reentrancy bug in NetInternalsTest.NetInternalsDnsViewIncognitoClears. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update comments 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. 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
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() { 258 netInternalsTest.test('netInternalsDnsViewIncognitoClears', function() {
259 netInternalsTest.switchToView('dns'); 259 netInternalsTest.switchToView('dns');
260 var taskQueue = new netInternalsTest.TaskQueue(true); 260 var taskQueue = new netInternalsTest.TaskQueue(true);
261 taskQueue.addTask(netInternalsTest.getCreateIncognitoBrowserTask()); 261 taskQueue.addTask(new netInternalsTest.CreateIncognitoBrowserTask());
262 taskQueue.addTask(new AddCacheEntryTask( 262 taskQueue.addTask(new AddCacheEntryTask(
263 'somewhere.com', '1.2.3.4', 0, true)); 263 'somewhere.com', '1.2.3.4', 0, true));
264 taskQueue.addTask(netInternalsTest.getCloseIncognitoBrowserTask()); 264 taskQueue.addTask(netInternalsTest.getCloseIncognitoBrowserTask());
265 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com')); 265 taskQueue.addTask(new WaitForEntryDestructionTask('somewhere.com'));
266 taskQueue.run(true); 266 taskQueue.run(true);
267 }); 267 });
268 268
269 })(); // Anonymous namespace 269 })(); // Anonymous namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/net_internals_ui_browsertest.cc ('k') | chrome/test/data/webui/net_internals/net_internals_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698