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 // 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 Loading... |
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 |
OLD | NEW |