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

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

Issue 1378123003: Adding SSL ETS Tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ets
Patch Set: Rebase. Created 5 years, 1 month 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
OLDNEW
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 // Include test fixture. 5 // Include test fixture.
6 GEN_INCLUDE(['net_internals_test.js']); 6 GEN_INCLUDE(['net_internals_test.js']);
7 7
8 // Anonymous namespace 8 // Anonymous namespace
9 (function() { 9 (function() {
10 10
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 this.onTaskDone(); 180 this.onTaskDone();
181 } 181 }
182 }; 182 };
183 183
184 /** 184 /**
185 * Prerender a page and navigate to it, once prerendering starts. 185 * Prerender a page and navigate to it, once prerendering starts.
186 */ 186 */
187 TEST_F('NetInternalsTest', 'netInternalsPrerenderViewSucceed', function() { 187 TEST_F('NetInternalsTest', 'netInternalsPrerenderViewSucceed', function() {
188 var taskQueue = new NetInternalsTest.TaskQueue(true); 188 var taskQueue = new NetInternalsTest.TaskQueue(true);
189 taskQueue.addTask( 189 taskQueue.addTask(
190 new NetInternalsTest.GetTestServerURLTask('files/title1.html')); 190 new NetInternalsTest.GetTestServerURLTask('/title1.html'));
191 taskQueue.addTask(new PrerenderTask(true, 'Used')); 191 taskQueue.addTask(new PrerenderTask(true, 'Used'));
192 taskQueue.run(); 192 taskQueue.run();
193 }); 193 });
194 194
195 /** 195 /**
196 * Prerender a page that is expected to fail. 196 * Prerender a page that is expected to fail.
197 */ 197 */
198 TEST_F('NetInternalsTest', 'netInternalsPrerenderViewFail', function() { 198 TEST_F('NetInternalsTest', 'netInternalsPrerenderViewFail', function() {
199 var taskQueue = new NetInternalsTest.TaskQueue(true); 199 var taskQueue = new NetInternalsTest.TaskQueue(true);
200 taskQueue.addTask( 200 taskQueue.addTask(
201 new NetInternalsTest.GetTestServerURLTask('files/download-test1.lib')); 201 new NetInternalsTest.GetTestServerURLTask('/download-test1.lib'));
202 taskQueue.addTask(new PrerenderTask(false, 'Download')); 202 taskQueue.addTask(new PrerenderTask(false, 'Download'));
203 taskQueue.run(); 203 taskQueue.run();
204 }); 204 });
205 205
206 })(); // Anonymous namespace 206 })(); // Anonymous namespace
OLDNEW
« no previous file with comments | « chrome/test/data/webui/net_internals/bandwidth_view.js ('k') | chrome/test/data/webui/net_internals/sdch_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698