OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "content/test/layout_browsertest.h" | 5 #include "content/test/layout_browsertest.h" |
6 | 6 |
7 class IndexedDBLayoutTest : public InProcessBrowserLayoutTest { | 7 class IndexedDBLayoutTest : public InProcessBrowserLayoutTest { |
8 public: | 8 public: |
9 IndexedDBLayoutTest() : InProcessBrowserLayoutTest( | 9 IndexedDBLayoutTest() : InProcessBrowserLayoutTest( |
10 FilePath(), FilePath().AppendASCII("storage").AppendASCII("indexeddb")) { | 10 FilePath(), FilePath().AppendASCII("storage").AppendASCII("indexeddb")) { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 "transaction-rollback.html", | 86 "transaction-rollback.html", |
87 "transaction-storeNames-required.html", | 87 "transaction-storeNames-required.html", |
88 NULL | 88 NULL |
89 }; | 89 }; |
90 | 90 |
91 static const char* kRegressionTests[] = { | 91 static const char* kRegressionTests[] = { |
92 "dont-commit-on-blocked.html", | 92 "dont-commit-on-blocked.html", |
93 NULL | 93 NULL |
94 }; | 94 }; |
95 | 95 |
| 96 const char* kIntVersionTests[] = { |
| 97 "intversion-abort-in-initial-upgradeneeded.html", |
| 98 "intversion-and-setversion.html", |
| 99 "intversion-blocked.html", |
| 100 "intversion-close-between-events.html", |
| 101 "intversion-close-in-oncomplete.html", |
| 102 "intversion-close-in-upgradeneeded.html", |
| 103 "intversion-delete-in-upgradeneeded.html", |
| 104 // "intversion-gated-on-delete.html", // behaves slightly differently in DRT |
| 105 "intversion-invalid-setversion-has-no-side-effects.html", |
| 106 "intversion-long-queue.html", |
| 107 "intversion-omit-parameter.html", |
| 108 "intversion-open-with-version.html", |
| 109 NULL |
| 110 }; |
| 111 |
96 } | 112 } |
97 | 113 |
98 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, BasicTests) { | 114 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, BasicTests) { |
99 RunLayoutTests(kBasicTests); | 115 RunLayoutTests(kBasicTests); |
100 } | 116 } |
101 | 117 |
102 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, ComplexTests) { | 118 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, ComplexTests) { |
103 RunLayoutTests(kComplexTests); | 119 RunLayoutTests(kComplexTests); |
104 } | 120 } |
105 | 121 |
106 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IndexTests) { | 122 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IndexTests) { |
107 RunLayoutTests(kIndexTests); | 123 RunLayoutTests(kIndexTests); |
108 } | 124 } |
109 | 125 |
110 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, KeyTests) { | 126 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, KeyTests) { |
111 RunLayoutTests(kKeyTests); | 127 RunLayoutTests(kKeyTests); |
112 } | 128 } |
113 | 129 |
114 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, TransactionTests) { | 130 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, TransactionTests) { |
115 RunLayoutTests(kTransactionTests); | 131 RunLayoutTests(kTransactionTests); |
116 } | 132 } |
117 | 133 |
| 134 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IntVersionTests) { |
| 135 RunLayoutTests(kIntVersionTests); |
| 136 } |
| 137 |
118 // Frequent flaky timeouts. http://crbug.com/123685 | 138 // Frequent flaky timeouts. http://crbug.com/123685 |
119 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, RegressionTests) { | 139 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, RegressionTests) { |
120 RunLayoutTests(kRegressionTests); | 140 RunLayoutTests(kRegressionTests); |
121 } | 141 } |
OLD | NEW |