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

Side by Side Diff: chrome/test/data/webui/net_internals/sdch_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 expectEquals(entry.domain, domain); 170 expectEquals(entry.domain, domain);
171 expectEquals(this.reason_, reason); 171 expectEquals(this.reason_, reason);
172 this.onTaskDone(); 172 this.onTaskDone();
173 } 173 }
174 } 174 }
175 }; 175 };
176 176
177 // Flaky on Win Debug build - crbug.com/517484 177 // Flaky on Win Debug build - crbug.com/517484
178 GEN('#if defined(OS_WIN)'); 178 GEN('#if defined(OS_WIN)');
179 GEN('# define MAYBE_netInternalsSdchViewFetchDictionary \\'); 179 GEN('# define MAYBE_netInternalsSdchViewFetchDictionary \\');
180 GEN(' DISABLED_netInternalsSdchViewFetchDictionary'); 180 GEN(' netInternalsSdchViewFetchDictionary');
181 GEN('#else'); 181 GEN('#else');
182 GEN('# define MAYBE_netInternalsSdchViewFetchDictionary \\'); 182 GEN('# define MAYBE_netInternalsSdchViewFetchDictionary \\');
183 GEN(' netInternalsSdchViewFetchDictionary'); 183 GEN(' netInternalsSdchViewFetchDictionary');
184 GEN('#endif'); 184 GEN('#endif');
185 185
186 /** 186 /**
187 * Load a page, which results in downloading a SDCH dictionary. Make sure its 187 * Load a page, which results in downloading a SDCH dictionary. Make sure its
188 * data is displayed. 188 * data is displayed.
189 */ 189 */
190 TEST_F('NetInternalsTest', 190 TEST_F('NetInternalsTest',
191 'MAYBE_netInternalsSdchViewFetchDictionary', function() { 191 'MAYBE_netInternalsSdchViewFetchDictionary', function() {
192 var taskQueue = new NetInternalsTest.TaskQueue(true); 192 var taskQueue = new NetInternalsTest.TaskQueue(true);
193 taskQueue.addTask( 193 taskQueue.addTask(
194 new NetInternalsTest.GetTestServerURLTask( 194 new NetInternalsTest.GetTestServerURLTask(
195 BASE_PATH + encodeURI('/files/sdch/page.html'))); 195 BASE_PATH + encodeURI('/files/sdch/page.html')));
196 taskQueue.addTask(new LoadSdchDictionaryTask()); 196 taskQueue.addTask(new LoadSdchDictionaryTask());
197 taskQueue.run(); 197 taskQueue.run();
198 }); 198 });
199 199
200 // Flaky on Win Debug build - crbug.com/517484 200 // Flaky on Win Debug build - crbug.com/517484
201 GEN('#if defined(OS_WIN)'); 201 GEN('#if defined(OS_WIN)');
202 GEN('# define MAYBE_netInternalsSdchViewBlacklistMeta \\'); 202 GEN('# define MAYBE_netInternalsSdchViewBlacklistMeta \\');
203 GEN(' DISABLED_netInternalsSdchViewBlacklistMeta'); 203 GEN(' netInternalsSdchViewBlacklistMeta');
204 GEN('#else'); 204 GEN('#else');
205 GEN('# define MAYBE_netInternalsSdchViewBlacklistMeta \\'); 205 GEN('# define MAYBE_netInternalsSdchViewBlacklistMeta \\');
206 GEN(' netInternalsSdchViewBlacklistMeta'); 206 GEN(' netInternalsSdchViewBlacklistMeta');
207 GEN('#endif'); 207 GEN('#endif');
208 208
209 /** 209 /**
210 * Load a page, get the dictionary for it, and get decoding error to see 210 * Load a page, get the dictionary for it, and get decoding error to see
211 * the blacklist in action. 211 * the blacklist in action.
212 */ 212 */
213 TEST_F('NetInternalsTest', 213 TEST_F('NetInternalsTest',
214 'MAYBE_netInternalsSdchViewBlacklistMeta', function() { 214 'MAYBE_netInternalsSdchViewBlacklistMeta', function() {
215 var taskQueue = new NetInternalsTest.TaskQueue(true); 215 var taskQueue = new NetInternalsTest.TaskQueue(true);
216 taskQueue.addTask( 216 taskQueue.addTask(
217 new NetInternalsTest.GetTestServerURLTask( 217 new NetInternalsTest.GetTestServerURLTask(
218 BASE_PATH + encodeURI('/files/sdch/page.html'))); 218 BASE_PATH + encodeURI('/files/sdch/page.html')));
219 taskQueue.addTask(new LoadSdchDictionaryTask()); 219 taskQueue.addTask(new LoadSdchDictionaryTask());
220 taskQueue.addTask( 220 taskQueue.addTask(
221 new NetInternalsTest.GetTestServerURLTask( 221 new NetInternalsTest.GetTestServerURLTask(
222 BASE_PATH + encodeURI('/files/sdch/non-html'))); 222 BASE_PATH + encodeURI('/files/sdch/non-html')));
223 taskQueue.addTask( 223 taskQueue.addTask(
224 new LoadPageWithDecodeErrorTask('META_REFRESH_UNSUPPORTED')); 224 new LoadPageWithDecodeErrorTask('META_REFRESH_UNSUPPORTED'));
225 taskQueue.run(); 225 taskQueue.run();
226 }); 226 });
227 227
228 // Flaky on Win Debug build - crbug.com/517484 228 // Flaky on Win Debug build - crbug.com/517484
229 GEN('#if defined(OS_WIN)'); 229 GEN('#if defined(OS_WIN)');
230 GEN('# define MAYBE_netInternalsSdchViewBlacklistNonSdch \\'); 230 GEN('# define MAYBE_netInternalsSdchViewBlacklistNonSdch \\');
231 GEN(' DISABLED_netInternalsSdchViewBlacklistNonSdch'); 231 GEN(' netInternalsSdchViewBlacklistNonSdch');
232 GEN('#else'); 232 GEN('#else');
233 GEN('# define MAYBE_netInternalsSdchViewBlacklistNonSdch \\'); 233 GEN('# define MAYBE_netInternalsSdchViewBlacklistNonSdch \\');
234 GEN(' netInternalsSdchViewBlacklistNonSdch'); 234 GEN(' netInternalsSdchViewBlacklistNonSdch');
235 GEN('#endif'); 235 GEN('#endif');
236 236
237 /** 237 /**
238 * Load a page, which is said to be SDCH-encoded, though we don't expect it. 238 * Load a page, which is said to be SDCH-encoded, though we don't expect it.
239 */ 239 */
240 TEST_F('NetInternalsTest', 240 TEST_F('NetInternalsTest',
241 'MAYBE_netInternalsSdchViewBlacklistNonSdch', function() { 241 'MAYBE_netInternalsSdchViewBlacklistNonSdch', function() {
242 var taskQueue = new NetInternalsTest.TaskQueue(true); 242 var taskQueue = new NetInternalsTest.TaskQueue(true);
243 taskQueue.addTask( 243 taskQueue.addTask(
244 new NetInternalsTest.GetTestServerURLTask( 244 new NetInternalsTest.GetTestServerURLTask(
245 BASE_PATH + encodeURI('/files/sdch/non-sdch.html'))); 245 BASE_PATH + encodeURI('/files/sdch/non-sdch.html')));
246 taskQueue.addTask( 246 taskQueue.addTask(
247 new LoadPageWithDecodeErrorTask('PASSING_THROUGH_NON_SDCH')); 247 new LoadPageWithDecodeErrorTask('PASSING_THROUGH_NON_SDCH'));
248 taskQueue.run(); 248 taskQueue.run();
249 }); 249 });
250 250
251 })(); // Anonymous namespace 251 })(); // Anonymous namespace
OLDNEW
« no previous file with comments | « chrome/test/data/webui/net_internals/prerender_view.js ('k') | content/app/content_main_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698