| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 worker_test_dir = worker_test_dir.AppendASCII("workers"); | 442 worker_test_dir = worker_test_dir.AppendASCII("workers"); |
| 443 InitializeForLayoutTest(http_test_dir, worker_test_dir, kHttpPort); | 443 InitializeForLayoutTest(http_test_dir, worker_test_dir, kHttpPort); |
| 444 | 444 |
| 445 LayoutTestHttpServer http_server(new_http_root_dir_, kHttpPort); | 445 LayoutTestHttpServer http_server(new_http_root_dir_, kHttpPort); |
| 446 ASSERT_TRUE(http_server.Start()); | 446 ASSERT_TRUE(http_server.Start()); |
| 447 for (size_t i = 0; i < arraysize(kLayoutTestFiles); ++i) | 447 for (size_t i = 0; i < arraysize(kLayoutTestFiles); ++i) |
| 448 RunLayoutTest(kLayoutTestFiles[i], kHttpPort); | 448 RunLayoutTest(kLayoutTestFiles[i], kHttpPort); |
| 449 ASSERT_TRUE(http_server.Stop()); | 449 ASSERT_TRUE(http_server.Stop()); |
| 450 } | 450 } |
| 451 | 451 |
| 452 TEST_F(WorkerTest, WorkerWebSocketLayoutTests) { | 452 // TODO(yutak): Reenable this test after the following issue is resolved. |
| 453 // https://bugs.webkit.org/show_bug.cgi?id=64852 |
| 454 TEST_F(WorkerTest, DISABLED_WorkerWebSocketLayoutTests) { |
| 453 static const char* kLayoutTestFiles[] = { | 455 static const char* kLayoutTestFiles[] = { |
| 454 "close-in-onmessage-crash.html", | 456 "close-in-onmessage-crash.html", |
| 455 "close-in-shared-worker.html", | 457 "close-in-shared-worker.html", |
| 456 "close-in-worker.html", | 458 "close-in-worker.html", |
| 457 "shared-worker-simple.html", | 459 "shared-worker-simple.html", |
| 458 "worker-handshake-challenge-randomness.html", | 460 "worker-handshake-challenge-randomness.html", |
| 459 "worker-simple.html" | 461 "worker-simple.html" |
| 460 }; | 462 }; |
| 461 | 463 |
| 462 FilePath websocket_test_dir; | 464 FilePath websocket_test_dir; |
| 463 websocket_test_dir = websocket_test_dir.AppendASCII("http"); | 465 websocket_test_dir = websocket_test_dir.AppendASCII("http"); |
| 464 websocket_test_dir = websocket_test_dir.AppendASCII("tests"); | 466 websocket_test_dir = websocket_test_dir.AppendASCII("tests"); |
| 465 | 467 |
| 466 FilePath worker_test_dir; | 468 FilePath worker_test_dir; |
| 467 worker_test_dir = worker_test_dir.AppendASCII("websocket"); | 469 worker_test_dir = worker_test_dir.AppendASCII("websocket"); |
| 468 worker_test_dir = worker_test_dir.AppendASCII("tests"); | 470 worker_test_dir = worker_test_dir.AppendASCII("tests"); |
| 469 worker_test_dir = worker_test_dir.AppendASCII("hixie76"); | 471 worker_test_dir = worker_test_dir.AppendASCII("hybi"); |
| 470 worker_test_dir = worker_test_dir.AppendASCII("workers"); | 472 worker_test_dir = worker_test_dir.AppendASCII("workers"); |
| 471 InitializeForLayoutTest(websocket_test_dir, worker_test_dir, kHttpPort); | 473 InitializeForLayoutTest(websocket_test_dir, worker_test_dir, kHttpPort); |
| 472 | 474 |
| 473 FilePath websocket_root_dir(temp_test_dir_); | 475 FilePath websocket_root_dir(temp_test_dir_); |
| 474 websocket_root_dir = websocket_root_dir.AppendASCII("LayoutTests"); | 476 websocket_root_dir = websocket_root_dir.AppendASCII("LayoutTests"); |
| 475 ui_test_utils::TestWebSocketServer websocket_server; | 477 ui_test_utils::TestWebSocketServer websocket_server; |
| 476 ASSERT_TRUE(websocket_server.Start(websocket_root_dir)); | 478 ASSERT_TRUE(websocket_server.Start(websocket_root_dir)); |
| 477 | 479 |
| 478 LayoutTestHttpServer http_server(new_http_root_dir_, kHttpPort); | 480 LayoutTestHttpServer http_server(new_http_root_dir_, kHttpPort); |
| 479 ASSERT_TRUE(http_server.Start()); | 481 ASSERT_TRUE(http_server.Start()); |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 RunWorkerFileSystemLayoutTest("file-writer-truncate-extend.html"); | 834 RunWorkerFileSystemLayoutTest("file-writer-truncate-extend.html"); |
| 833 } | 835 } |
| 834 | 836 |
| 835 TEST_F(WorkerFileSystemTest, FileWriterSyncTruncateExtend) { | 837 TEST_F(WorkerFileSystemTest, FileWriterSyncTruncateExtend) { |
| 836 RunWorkerFileSystemLayoutTest("file-writer-sync-truncate-extend.html"); | 838 RunWorkerFileSystemLayoutTest("file-writer-sync-truncate-extend.html"); |
| 837 } | 839 } |
| 838 | 840 |
| 839 TEST_F(WorkerFileSystemTest, FileWriterSyncWriteOverlapped) { | 841 TEST_F(WorkerFileSystemTest, FileWriterSyncWriteOverlapped) { |
| 840 RunWorkerFileSystemLayoutTest("file-writer-sync-write-overlapped.html"); | 842 RunWorkerFileSystemLayoutTest("file-writer-sync-write-overlapped.html"); |
| 841 } | 843 } |
| OLD | NEW |