summaryrefslogtreecommitdiffstats
path: root/chrome/worker/worker_uitest.cc
diff options
context:
space:
mode:
authordumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 22:16:08 +0000
committerdumi@chromium.org <dumi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-16 22:16:08 +0000
commitffcb49983116dc555386fcaff4143655f130c516 (patch)
tree33aa73662413cee711b4a1eaa066bbf9d0784a3a /chrome/worker/worker_uitest.cc
parent4104a4136ad1f84c64a8347091f057a3ceb2e541 (diff)
downloadchromium_src-ffcb49983116dc555386fcaff4143655f130c516.zip
chromium_src-ffcb49983116dc555386fcaff4143655f130c516.tar.gz
chromium_src-ffcb49983116dc555386fcaff4143655f130c516.tar.bz2
Revert 52744 - Enable all sync DB layout tests.
BUG=49118 TEST=none Review URL: http://codereview.chromium.org/2813055 TBR=dumi@chromium.org Review URL: http://codereview.chromium.org/2847057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52758 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/worker/worker_uitest.cc')
-rw-r--r--chrome/worker/worker_uitest.cc71
1 files changed, 28 insertions, 43 deletions
diff --git a/chrome/worker/worker_uitest.cc b/chrome/worker/worker_uitest.cc
index 6c989da..8e5e023 100644
--- a/chrome/worker/worker_uitest.cc
+++ b/chrome/worker/worker_uitest.cc
@@ -126,6 +126,31 @@ class WorkerTest : public UILayoutTest {
EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(about_url));
}
+ void RunWorkerStorageLayoutTest(const std::string& test_case_file_name) {
+ FilePath worker_test_dir;
+ worker_test_dir = worker_test_dir.AppendASCII("fast");
+ worker_test_dir = worker_test_dir.AppendASCII("workers");
+
+ FilePath storage_test_dir;
+ storage_test_dir = storage_test_dir.AppendASCII("storage");
+ InitializeForLayoutTest(worker_test_dir, storage_test_dir, kNoHttpPort);
+
+ // Storage worker tests also rely on common files in 'resources'.
+ FilePath resource_dir;
+ resource_dir = resource_dir.AppendASCII("resources");
+ AddResourceForLayoutTest(worker_test_dir.Append(storage_test_dir),
+ resource_dir);
+
+ printf("Test: %s\n", test_case_file_name.c_str());
+ RunLayoutTest(test_case_file_name, kNoHttpPort);
+
+ // Navigate to a blank page so that any workers are cleaned up.
+ // This helps leaks trackers do a better job of reporting.
+ scoped_refptr<TabProxy> tab(GetActiveTab());
+ GURL about_url(chrome::kAboutBlankURL);
+ EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(about_url));
+ }
+
bool NavigateAndWaitForAuth(TabProxy* tab, const GURL& url) {
// Pass a large number of navigations to tell the tab to block until an auth
// dialog pops up.
@@ -640,47 +665,7 @@ TEST_F(WorkerTest, MAYBE_QueuedSharedWorkerStartedFromOtherTab) {
ASSERT_TRUE(WaitForProcessCountToBe(2, max_workers_per_tab+1));
}
-TEST_F(WorkerTest, SyncDBTests) {
- static const char* kLayoutTestFiles[] = {
- "change-version-handle-reuse-sync.html",
- "change-version-sync.html",
- "empty-statement-sync.html",
- "execute-sql-args-sync.html",
- "executesql-accepts-only-one-statement-sync.html",
- "multiple-transactions-on-different-handles-sync.html",
- "open-database-creation-callback-sync.html",
- "open-database-empty-version-sync.html",
- "open-database-inputs-sync.html",
- "open-database-set-empty-version-sync.html",
- "open-database-while-transaction-in-progress-sync.html",
- "sql-data-types-sync.html",
- "sql-exception-codes-sync.html",
- "test-authorizer-sync.html",
- "transaction-in-transaction-sync.html",
- };
-
- FilePath worker_test_dir;
- worker_test_dir = worker_test_dir.AppendASCII("fast");
- worker_test_dir = worker_test_dir.AppendASCII("workers");
-
- FilePath storage_test_dir;
- storage_test_dir = storage_test_dir.AppendASCII("storage");
- InitializeForLayoutTest(worker_test_dir, storage_test_dir, kNoHttpPort);
-
- // Storage worker tests also rely on common files in 'resources'.
- FilePath resource_dir;
- resource_dir = resource_dir.AppendASCII("resources");
- AddResourceForLayoutTest(worker_test_dir.Append(storage_test_dir),
- resource_dir);
-
- for (size_t i = 0; i < arraysize(kLayoutTestFiles); ++i) {
- printf("Test: %s\n", kLayoutTestFiles[i]);
- RunLayoutTest(kLayoutTestFiles[i], kNoHttpPort);
- }
-
- // Navigate to a blank page so that any workers are cleaned up.
- // This helps leaks trackers do a better job of reporting.
- scoped_refptr<TabProxy> tab(GetActiveTab());
- GURL about_url(chrome::kAboutBlankURL);
- EXPECT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, tab->NavigateToURL(about_url));
+// TODO(ojan): Started failing with r52393. WebKit merge 63272:63323.
+TEST_F(WorkerTest, FAILS_OpenDatabaseSyncInputs) {
+ RunWorkerStorageLayoutTest("open-database-sync-inputs.html");
}