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"
9 class IndexedDBLayoutTest
: public InProcessBrowserLayoutTest
{
11 IndexedDBLayoutTest() : InProcessBrowserLayoutTest(
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
]);
24 static const char* kBasicTests
[] = {
26 "basics-shared-workers.html",
27 "basics-workers.html",
28 "database-basics.html",
29 "factory-basics.html",
31 "objectstore-basics.html",
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",
44 static const char* kIndexTests
[] = {
46 // Flaky?: http://crbug.com/123685
47 "index-basics-workers.html",
50 "index-get-key-argument-required.html",
51 "index-multientry.html",
52 "index-population.html",
57 static const char* kKeyTests
[] = {
59 "keypath-basics.html",
61 "keypath-fetch-key.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",
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",
88 static const char* kRegressionTests
[] = {
89 "dont-commit-on-blocked.html",
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",
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",
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