| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 } | 260 } |
| 261 | 261 |
| 262 #if defined(OS_WIN) || defined(OS_LINUX) | 262 #if defined(OS_WIN) || defined(OS_LINUX) |
| 263 // http://crbug.com/101996 | 263 // http://crbug.com/101996 |
| 264 #define UseMachineStack FLAKY_UseMachineStack | 264 #define UseMachineStack FLAKY_UseMachineStack |
| 265 #endif | 265 #endif |
| 266 TEST_F(WorkerTest, UseMachineStack) { | 266 TEST_F(WorkerTest, UseMachineStack) { |
| 267 RunWorkerFastLayoutTest("use-machine-stack.html"); | 267 RunWorkerFastLayoutTest("use-machine-stack.html"); |
| 268 } | 268 } |
| 269 | 269 |
| 270 #if defined(OS_WIN) | 270 #if defined(OS_WIN) || defined(OS_LINUX) |
| 271 // http://crbug.com/101996 | 271 // http://crbug.com/101996 |
| 272 #define WorkerCall FLAKY_WorkerCall | 272 #define WorkerCall FLAKY_WorkerCall |
| 273 #endif | 273 #endif |
| 274 TEST_F(WorkerTest, WorkerCall) { | 274 TEST_F(WorkerTest, WorkerCall) { |
| 275 RunWorkerFastLayoutTest("worker-call.html"); | 275 RunWorkerFastLayoutTest("worker-call.html"); |
| 276 } | 276 } |
| 277 | 277 |
| 278 // Crashy, http://crbug.com/35965. | 278 // Crashy, http://crbug.com/35965. |
| 279 // Flaky, http://crbug.com/36555. | 279 // Flaky, http://crbug.com/36555. |
| 280 TEST_F(WorkerTest, DISABLED_WorkerClonePort) { | 280 TEST_F(WorkerTest, DISABLED_WorkerClonePort) { |
| 281 RunWorkerFastLayoutTest("worker-cloneport.html"); | 281 RunWorkerFastLayoutTest("worker-cloneport.html"); |
| 282 } | 282 } |
| 283 | 283 |
| 284 #if defined(OS_MACOSX) || defined(OS_WIN) | 284 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX) |
| 285 // http://crbug.com/101996 | 285 // http://crbug.com/101996 |
| 286 #define WorkerCloseFast FLAKY_WorkerCloseFast | 286 #define WorkerCloseFast FLAKY_WorkerCloseFast |
| 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"); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 } | 354 } |
| 355 | 355 |
| 356 #if defined(OS_WIN) || defined(OS_LINUX) | 356 #if defined(OS_WIN) || defined(OS_LINUX) |
| 357 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). | 357 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). |
| 358 #define WorkerMessagePort FLAKY_WorkerMessagePort | 358 #define WorkerMessagePort FLAKY_WorkerMessagePort |
| 359 #endif | 359 #endif |
| 360 TEST_F(WorkerTest, WorkerMessagePort) { | 360 TEST_F(WorkerTest, WorkerMessagePort) { |
| 361 RunWorkerFastLayoutTest("worker-messageport.html"); | 361 RunWorkerFastLayoutTest("worker-messageport.html"); |
| 362 } | 362 } |
| 363 | 363 |
| 364 #if defined(OS_WIN) | 364 #if defined(OS_WIN) || defined(OS_LINUX) |
| 365 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). | 365 // http://crbug.com/101996 (started flaking with WebKit roll 98537:98582). |
| 366 #define WorkerMessagePortGC FLAKY_WorkerMessagePortGC | 366 #define WorkerMessagePortGC FLAKY_WorkerMessagePortGC |
| 367 #endif | 367 #endif |
| 368 TEST_F(WorkerTest, WorkerMessagePortGC) { | 368 TEST_F(WorkerTest, WorkerMessagePortGC) { |
| 369 RunWorkerFastLayoutTest("worker-messageport-gc.html"); | 369 RunWorkerFastLayoutTest("worker-messageport-gc.html"); |
| 370 } | 370 } |
| 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) || defined(OS_LINUX) | 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) || defined(OS_LINUX) |
| 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) || defined(OS_LINUX) | 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 |
| (...skipping 542 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 |