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

Side by Side Diff: chrome/worker/worker_uitest.cc

Issue 5432002: Fix WorkerTest.WorkerWebSocketLayoutTests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/ui/ui_layout_test.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/app/chrome_command_ids.h" 7 #include "chrome/app/chrome_command_ids.h"
8 #include "chrome/browser/worker_host/worker_service.h" 8 #include "chrome/browser/worker_host/worker_service.h"
9 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 FilePath worker_test_dir; 438 FilePath worker_test_dir;
439 worker_test_dir = worker_test_dir.AppendASCII("workers"); 439 worker_test_dir = worker_test_dir.AppendASCII("workers");
440 InitializeForLayoutTest(http_test_dir, worker_test_dir, kHttpPort); 440 InitializeForLayoutTest(http_test_dir, worker_test_dir, kHttpPort);
441 441
442 StartHttpServer(new_http_root_dir_); 442 StartHttpServer(new_http_root_dir_);
443 for (size_t i = 0; i < arraysize(kLayoutTestFiles); ++i) 443 for (size_t i = 0; i < arraysize(kLayoutTestFiles); ++i)
444 RunLayoutTest(kLayoutTestFiles[i], kHttpPort); 444 RunLayoutTest(kLayoutTestFiles[i], kHttpPort);
445 StopHttpServer(); 445 StopHttpServer();
446 } 446 }
447 447
448 // Times out, see http://crbug.com/49381 448 TEST_F(WorkerTest, WorkerWebSocketLayoutTests) {
449 TEST_F(WorkerTest, DISABLED_WorkerWebSocketLayoutTests) {
450 static const char* kLayoutTestFiles[] = { 449 static const char* kLayoutTestFiles[] = {
451 "close-in-onmessage-crash.html", 450 "close-in-onmessage-crash.html",
452 "close-in-shared-worker.html", 451 "close-in-shared-worker.html",
453 "close-in-worker.html", 452 "close-in-worker.html",
454 "shared-worker-simple.html", 453 "shared-worker-simple.html",
455 "worker-handshake-challenge-randomness.html", 454 "worker-handshake-challenge-randomness.html",
456 "worker-simple.html" 455 "worker-simple.html"
457 }; 456 };
458 457
459 FilePath websocket_test_dir; 458 FilePath websocket_test_dir;
460 websocket_test_dir = websocket_test_dir.AppendASCII("http"); 459 websocket_test_dir = websocket_test_dir.AppendASCII("http");
461 websocket_test_dir = websocket_test_dir.AppendASCII("tests"); 460 websocket_test_dir = websocket_test_dir.AppendASCII("tests");
462 websocket_test_dir = websocket_test_dir.AppendASCII("websocket");
463 websocket_test_dir = websocket_test_dir.AppendASCII("tests");
464 461
465 FilePath worker_test_dir; 462 FilePath worker_test_dir;
463 worker_test_dir = worker_test_dir.AppendASCII("websocket");
464 worker_test_dir = worker_test_dir.AppendASCII("tests");
466 worker_test_dir = worker_test_dir.AppendASCII("workers"); 465 worker_test_dir = worker_test_dir.AppendASCII("workers");
467 InitializeForLayoutTest(websocket_test_dir, worker_test_dir, kWebSocketPort); 466 InitializeForLayoutTest(websocket_test_dir, worker_test_dir, kHttpPort);
468 test_case_dir_ = test_case_dir_.AppendASCII("http");
469 test_case_dir_ = test_case_dir_.AppendASCII("tests");
470 test_case_dir_ = test_case_dir_.AppendASCII("websocket");
471 test_case_dir_ = test_case_dir_.AppendASCII("tests");
472 test_case_dir_ = test_case_dir_.AppendASCII("workers");
473 467
474 ui_test_utils::TestWebSocketServer websocket_server( 468 FilePath websocket_root_dir(temp_test_dir_);
475 temp_test_dir_.AppendASCII("LayoutTests")); 469 websocket_root_dir = websocket_root_dir.AppendASCII("LayoutTests");
470 ui_test_utils::TestWebSocketServer websocket_server(websocket_root_dir);
471
472 StartHttpServer(new_http_root_dir_);
476 for (size_t i = 0; i < arraysize(kLayoutTestFiles); ++i) 473 for (size_t i = 0; i < arraysize(kLayoutTestFiles); ++i)
477 RunLayoutTest(kLayoutTestFiles[i], kWebSocketPort); 474 RunLayoutTest(kLayoutTestFiles[i], kHttpPort);
475 StopHttpServer();
478 } 476 }
479 477
480 TEST_F(WorkerTest, DISABLED_WorkerXhrHttpLayoutTests) { 478 TEST_F(WorkerTest, DISABLED_WorkerXhrHttpLayoutTests) {
481 static const char* kLayoutTestFiles[] = { 479 static const char* kLayoutTestFiles[] = {
482 "abort-exception-assert.html", 480 "abort-exception-assert.html",
483 #if defined(OS_WIN) 481 #if defined(OS_WIN)
484 // Fails on the mac (and linux?): 482 // Fails on the mac (and linux?):
485 // http://code.google.com/p/chromium/issues/detail?id=22599 483 // http://code.google.com/p/chromium/issues/detail?id=22599
486 "close.html", 484 "close.html",
487 #endif 485 #endif
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 RunWorkerFileSystemLayoutTest("simple-persistent-sync.html"); 708 RunWorkerFileSystemLayoutTest("simple-persistent-sync.html");
711 } 709 }
712 710
713 TEST_F(WorkerTest, DISABLED_WorkerFileSystemAsyncOperationsTest) { 711 TEST_F(WorkerTest, DISABLED_WorkerFileSystemAsyncOperationsTest) {
714 RunWorkerFileSystemLayoutTest("async-operations.html"); 712 RunWorkerFileSystemLayoutTest("async-operations.html");
715 } 713 }
716 714
717 TEST_F(WorkerTest, DISABLED_WorkerFileSystemSyncOperationsTest) { 715 TEST_F(WorkerTest, DISABLED_WorkerFileSystemSyncOperationsTest) {
718 RunWorkerFileSystemLayoutTest("sync-operations.html"); 716 RunWorkerFileSystemLayoutTest("sync-operations.html");
719 } 717 }
OLDNEW
« no previous file with comments | « chrome/test/ui/ui_layout_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698