Re-enable index-basics-workers test to see if still times
[chromium-blink-merge.git] / content / browser / indexed_db / indexed_db_layout_browsertest.cc
blob86f2999ff7c3c8c480889bf29e6d3fcca5ab05b1
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/test/layout_browsertest.h"
7 namespace content {
9 class IndexedDBLayoutTest : public InProcessBrowserLayoutTest {
10 public:
11 IndexedDBLayoutTest() : InProcessBrowserLayoutTest(
12 base::FilePath(),
13 base::FilePath().AppendASCII("storage").AppendASCII("indexeddb")) {
16 void RunLayoutTests(const char* file_names[]) {
17 for (size_t i = 0; file_names[i]; i++)
18 RunLayoutTest(file_names[i]);
22 namespace {
24 static const char* kBasicTests[] = {
25 "basics.html",
26 "basics-shared-workers.html",
27 "basics-workers.html",
28 "database-basics.html",
29 "factory-basics.html",
30 "index-basics.html",
31 "objectstore-basics.html",
32 NULL
35 static const char* kComplexTests[] = {
36 "prefetch-bugfix-108071.html",
37 // Flaky: http://crbug.com/226256
38 //"pending-version-change-stuck.html",
39 "pending-version-change-stuck-works-with-terminate.html",
40 "pending-version-change-on-exit.html",
41 NULL
44 static const char* kIndexTests[] = {
45 "deleteIndex.html",
46 // Flaky?: http://crbug.com/123685
47 "index-basics-workers.html",
48 "index-count.html",
49 "index-cursor.html",
50 "index-get-key-argument-required.html",
51 "index-multientry.html",
52 "index-population.html",
53 "index-unique.html",
54 NULL
57 static const char* kKeyTests[] = {
58 "key-generator.html",
59 "keypath-basics.html",
60 "keypath-edges.html",
61 "keypath-fetch-key.html",
62 "keyrange.html",
63 "keyrange-required-arguments.html",
64 "key-sort-order-across-types.html",
65 "key-sort-order-date.html",
66 "key-type-array.html",
67 "key-type-infinity.html",
68 "invalid-keys.html",
69 NULL
72 static const char* kTransactionTests[] = {
73 "transaction-abort.html",
74 "transaction-complete-with-js-recursion-cross-frame.html",
75 "transaction-complete-with-js-recursion.html",
76 "transaction-complete-workers.html",
77 "transaction-after-close.html",
78 "transaction-and-objectstore-calls.html",
79 "transaction-basics.html",
80 "transaction-crash-on-abort.html",
81 "transaction-event-propagation.html",
82 "transaction-read-only.html",
83 "transaction-rollback.html",
84 "transaction-storeNames-required.html",
85 NULL
88 static const char* kRegressionTests[] = {
89 "dont-commit-on-blocked.html",
90 NULL
93 const char* kIntVersionTests1[] = {
94 "intversion-abort-in-initial-upgradeneeded.html",
95 "intversion-blocked.html",
96 "intversion-close-between-events.html",
97 "intversion-close-in-oncomplete.html",
98 "intversion-close-in-upgradeneeded.html",
99 "delete-in-upgradeneeded-close-in-open-success.html",
100 NULL
103 const char* kIntVersionTests2[] = {
104 "delete-in-upgradeneeded-close-in-versionchange.html",
105 "intversion-gated-on-delete.html",
106 "intversion-long-queue.html",
107 "intversion-omit-parameter.html",
108 "intversion-open-with-version.html",
109 "intversion-upgrades.html",
110 NULL
115 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, BasicTests) {
116 RunLayoutTests(kBasicTests);
120 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, ComplexTests) {
121 RunLayoutTests(kComplexTests);
124 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IndexTests) {
125 RunLayoutTests(kIndexTests);
128 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, KeyTests) {
129 RunLayoutTests(kKeyTests);
132 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, TransactionTests) {
133 RunLayoutTests(kTransactionTests);
136 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IntVersionTests1) {
137 RunLayoutTests(kIntVersionTests1);
140 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IntVersionTests2) {
141 RunLayoutTests(kIntVersionTests2);
144 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, RegressionTests) {
145 RunLayoutTests(kRegressionTests);
148 } // namespace content