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

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

Issue 1284083002: Print stack traces in child processes when browser tests failed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more fixes Created 5 years, 4 months 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 expectEquals(this.url_, prerenderInfo.history[0].url); 177 expectEquals(this.url_, prerenderInfo.history[0].url);
178 expectEquals(this.finalStatus_, prerenderInfo.history[0].final_status); 178 expectEquals(this.finalStatus_, prerenderInfo.history[0].final_status);
179 179
180 this.onTaskDone(); 180 this.onTaskDone();
181 } 181 }
182 }; 182 };
183 183
184 // Flaky on Win Debug build - crbug.com/517484 184 // Flaky on Win Debug build - crbug.com/517484
185 GEN('#if defined(OS_WIN)'); 185 GEN('#if defined(OS_WIN)');
186 GEN('# define MAYBE_netInternalsPrerenderViewSucceed \\'); 186 GEN('# define MAYBE_netInternalsPrerenderViewSucceed \\');
187 GEN(' DISABLED_netInternalsPrerenderViewSucceed'); 187 GEN(' netInternalsPrerenderViewSucceed');
188 GEN('#else'); 188 GEN('#else');
189 GEN('# define MAYBE_netInternalsPrerenderViewSucceed \\'); 189 GEN('# define MAYBE_netInternalsPrerenderViewSucceed \\');
190 GEN(' netInternalsPrerenderViewSucceed'); 190 GEN(' netInternalsPrerenderViewSucceed');
191 GEN('#endif'); 191 GEN('#endif');
192 192
193 /** 193 /**
194 * Prerender a page and navigate to it, once prerendering starts. 194 * Prerender a page and navigate to it, once prerendering starts.
195 */ 195 */
196 TEST_F('NetInternalsTest', 196 TEST_F('NetInternalsTest',
197 'MAYBE_netInternalsPrerenderViewSucceed', function() { 197 'MAYBE_netInternalsPrerenderViewSucceed', function() {
198 var taskQueue = new NetInternalsTest.TaskQueue(true); 198 var taskQueue = new NetInternalsTest.TaskQueue(true);
199 taskQueue.addTask( 199 taskQueue.addTask(
200 new NetInternalsTest.GetTestServerURLTask('files/title1.html')); 200 new NetInternalsTest.GetTestServerURLTask('files/title1.html'));
201 taskQueue.addTask(new PrerenderTask(true, 'Used')); 201 taskQueue.addTask(new PrerenderTask(true, 'Used'));
202 taskQueue.run(); 202 taskQueue.run();
203 }); 203 });
204 204
205 // Flaky on Win Debug build - crbug.com/517484 205 // Flaky on Win Debug build - crbug.com/517484
206 GEN('#if defined(OS_WIN)'); 206 GEN('#if defined(OS_WIN)');
207 GEN('# define MAYBE_netInternalsPrerenderViewFail \\'); 207 GEN('# define MAYBE_netInternalsPrerenderViewFail \\');
208 GEN(' DISABLED_netInternalsPrerenderViewFail'); 208 GEN(' netInternalsPrerenderViewFail');
209 GEN('#else'); 209 GEN('#else');
210 GEN('# define MAYBE_netInternalsPrerenderViewFail \\'); 210 GEN('# define MAYBE_netInternalsPrerenderViewFail \\');
211 GEN(' netInternalsPrerenderViewFail'); 211 GEN(' netInternalsPrerenderViewFail');
212 GEN('#endif'); 212 GEN('#endif');
213 213
214 /** 214 /**
215 * Prerender a page that is expected to fail. 215 * Prerender a page that is expected to fail.
216 */ 216 */
217 TEST_F('NetInternalsTest', 'MAYBE_netInternalsPrerenderViewFail', function() { 217 TEST_F('NetInternalsTest', 'MAYBE_netInternalsPrerenderViewFail', function() {
218 var taskQueue = new NetInternalsTest.TaskQueue(true); 218 var taskQueue = new NetInternalsTest.TaskQueue(true);
219 taskQueue.addTask( 219 taskQueue.addTask(
220 new NetInternalsTest.GetTestServerURLTask('files/download-test1.lib')); 220 new NetInternalsTest.GetTestServerURLTask('files/download-test1.lib'));
221 taskQueue.addTask(new PrerenderTask(false, 'Download')); 221 taskQueue.addTask(new PrerenderTask(false, 'Download'));
222 taskQueue.run(); 222 taskQueue.run();
223 }); 223 });
224 224
225 })(); // Anonymous namespace 225 })(); // Anonymous namespace
OLDNEW
« no previous file with comments | « chrome/test/data/webui/net_internals/log_util.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