OLD | NEW |
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 #include "base/file_path.h" | 5 #include "base/file_path.h" |
6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
7 #include "base/test/test_timeouts.h" | 7 #include "base/test/test_timeouts.h" |
8 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
10 #include "chrome/test/automation/automation_proxy.h" | 10 #include "chrome/test/automation/automation_proxy.h" |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 #endif | 287 #endif |
288 TEST_F(WorkerTest, WorkerCloseFast) { | 288 TEST_F(WorkerTest, WorkerCloseFast) { |
289 RunWorkerFastLayoutTest("worker-close.html"); | 289 RunWorkerFastLayoutTest("worker-close.html"); |
290 } | 290 } |
291 | 291 |
292 // Flaky (on XP), http://crbug.com/84203. | 292 // Flaky (on XP), http://crbug.com/84203. |
293 TEST_F(WorkerTest, FLAKY_WorkerConstructor) { | 293 TEST_F(WorkerTest, FLAKY_WorkerConstructor) { |
294 RunWorkerFastLayoutTest("worker-constructor.html"); | 294 RunWorkerFastLayoutTest("worker-constructor.html"); |
295 } | 295 } |
296 | 296 |
297 #if defined(OS_WIN) | 297 #if defined(OS_WIN) || defined(OS_LINUX) |
298 // http://crbug.com/101996 | 298 // http://crbug.com/101996 |
299 #define WorkerContextGc FLAKY_WorkerContextGc | 299 #define WorkerContextGc FLAKY_WorkerContextGc |
300 #endif | 300 #endif |
301 TEST_F(WorkerTest, WorkerContextGc) { | 301 TEST_F(WorkerTest, WorkerContextGc) { |
302 RunWorkerFastLayoutTest("worker-context-gc.html"); | 302 RunWorkerFastLayoutTest("worker-context-gc.html"); |
303 } | 303 } |
304 | 304 |
305 #if defined(OS_LINUX) | 305 #if defined(OS_LINUX) |
306 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). | 306 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). |
307 #define WorkerContextMultiPort FLAKY_WorkerContextMultiPort | 307 #define WorkerContextMultiPort FLAKY_WorkerContextMultiPort |
308 #endif | 308 #endif |
309 TEST_F(WorkerTest, WorkerContextMultiPort) { | 309 TEST_F(WorkerTest, WorkerContextMultiPort) { |
310 RunWorkerFastLayoutTest("worker-context-multi-port.html"); | 310 RunWorkerFastLayoutTest("worker-context-multi-port.html"); |
311 } | 311 } |
312 | 312 |
313 #if defined(OS_MAC) || defined(OS_WIN) | 313 #if defined(OS_MAC) || defined(OS_WIN) || defined(OS_LINUX) |
314 // http://crbug.com/101996 | 314 // http://crbug.com/101996 |
315 #define WorkerEventListener FLAKY_WorkerEventListener | 315 #define WorkerEventListener FLAKY_WorkerEventListener |
316 #endif | 316 #endif |
317 TEST_F(WorkerTest, WorkerEventListener) { | 317 TEST_F(WorkerTest, WorkerEventListener) { |
318 RunWorkerFastLayoutTest("worker-event-listener.html"); | 318 RunWorkerFastLayoutTest("worker-event-listener.html"); |
319 } | 319 } |
320 | 320 |
321 #if defined(OS_WIN) || defined(OS_LINUX) | 321 #if defined(OS_WIN) || defined(OS_LINUX) |
322 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). | 322 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). |
323 #define WorkerGC FLAKY_WorkerGC | 323 #define WorkerGC FLAKY_WorkerGC |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 371 |
372 TEST_F(WorkerTest, WorkerMultiPort) { | 372 TEST_F(WorkerTest, WorkerMultiPort) { |
373 RunWorkerFastLayoutTest("worker-multi-port.html"); | 373 RunWorkerFastLayoutTest("worker-multi-port.html"); |
374 } | 374 } |
375 | 375 |
376 // Flaky, http://crbug.com/76426. | 376 // Flaky, http://crbug.com/76426. |
377 TEST_F(WorkerTest, FLAKY_WorkerNavigator) { | 377 TEST_F(WorkerTest, FLAKY_WorkerNavigator) { |
378 RunWorkerFastLayoutTest("worker-navigator.html"); | 378 RunWorkerFastLayoutTest("worker-navigator.html"); |
379 } | 379 } |
380 | 380 |
381 #if defined(OS_WIN) | 381 #if defined(OS_WIN) || defined(OS_LINUX) |
382 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). | 382 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). |
383 #define WorkerReplaceGlobalConstructor FLAKY_WorkerReplaceGlobalConstructor | 383 #define WorkerReplaceGlobalConstructor FLAKY_WorkerReplaceGlobalConstructor |
384 #endif | 384 #endif |
385 TEST_F(WorkerTest, WorkerReplaceGlobalConstructor) { | 385 TEST_F(WorkerTest, WorkerReplaceGlobalConstructor) { |
386 RunWorkerFastLayoutTest("worker-replace-global-constructor.html"); | 386 RunWorkerFastLayoutTest("worker-replace-global-constructor.html"); |
387 } | 387 } |
388 | 388 |
389 #if defined(OS_WIN) | 389 #if defined(OS_WIN) |
390 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). | 390 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). |
391 #define WorkerReplaceSelf FLAKY_WorkerReplaceSelf | 391 #define WorkerReplaceSelf FLAKY_WorkerReplaceSelf |
392 #endif | 392 #endif |
393 TEST_F(WorkerTest, WorkerReplaceSelf) { | 393 TEST_F(WorkerTest, WorkerReplaceSelf) { |
394 RunWorkerFastLayoutTest("worker-replace-self.html"); | 394 RunWorkerFastLayoutTest("worker-replace-self.html"); |
395 } | 395 } |
396 | 396 |
397 #if defined(OS_MACOSX) || defined(OS_WIN) | 397 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) |
398 // Mac: http://crbug.com/44457 | 398 // Mac: http://crbug.com/44457 |
399 // Windows: http://crbug.com/101996 | 399 // Windows: http://crbug.com/101996 |
400 #define WorkerScriptError FLAKY_WorkerScriptError | 400 #define WorkerScriptError FLAKY_WorkerScriptError |
401 #endif | 401 #endif |
402 TEST_F(WorkerTest, WorkerScriptError) { | 402 TEST_F(WorkerTest, WorkerScriptError) { |
403 RunWorkerFastLayoutTest("worker-script-error.html"); | 403 RunWorkerFastLayoutTest("worker-script-error.html"); |
404 } | 404 } |
405 | 405 |
406 #if defined(OS_MACOSX) || defined(OS_WIN) | 406 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) |
407 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). | 407 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). |
408 #define WorkerTerminate FLAKY_WorkerTerminate | 408 #define WorkerTerminate FLAKY_WorkerTerminate |
409 #endif | 409 #endif |
410 TEST_F(WorkerTest, WorkerTerminate) { | 410 TEST_F(WorkerTest, WorkerTerminate) { |
411 RunWorkerFastLayoutTest("worker-terminate.html"); | 411 RunWorkerFastLayoutTest("worker-terminate.html"); |
412 } | 412 } |
413 | 413 |
414 #if defined(OS_MACOSX) || defined(OS_WIN) | 414 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) |
415 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). | 415 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). |
416 #define WorkerTimeout FLAKY_WorkerTimeout | 416 #define WorkerTimeout FLAKY_WorkerTimeout |
417 #endif | 417 #endif |
418 TEST_F(WorkerTest, WorkerTimeout) { | 418 TEST_F(WorkerTest, WorkerTimeout) { |
419 RunWorkerFastLayoutTest("worker-timeout.html"); | 419 RunWorkerFastLayoutTest("worker-timeout.html"); |
420 } | 420 } |
421 | 421 |
422 // | 422 // |
423 // SharedWorkerFastLayoutTests | 423 // SharedWorkerFastLayoutTests |
424 // | 424 // |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 } | 942 } |
943 | 943 |
944 #if defined(OS_LINUX) | 944 #if defined(OS_LINUX) |
945 // Fails on Linux due to an assert in WebKit's RNG. | 945 // Fails on Linux due to an assert in WebKit's RNG. |
946 // See http://webkit.org/b/55728. | 946 // See http://webkit.org/b/55728. |
947 #define FileWriterSyncWriteOverlapped DISABLED_FileWriterSyncWriteOverlapped | 947 #define FileWriterSyncWriteOverlapped DISABLED_FileWriterSyncWriteOverlapped |
948 #endif | 948 #endif |
949 TEST_F(WorkerFileSystemTest, FileWriterSyncWriteOverlapped) { | 949 TEST_F(WorkerFileSystemTest, FileWriterSyncWriteOverlapped) { |
950 RunWorkerFileSystemLayoutTest("file-writer-sync-write-overlapped.html"); | 950 RunWorkerFileSystemLayoutTest("file-writer-sync-write-overlapped.html"); |
951 } | 951 } |
OLD | NEW |