| 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 "base/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "content/test/layout_browsertest.h" | 6 #include "content/test/layout_browsertest.h" |
| 7 | 7 |
| 8 class IndexedDBLayoutTest : public InProcessBrowserLayoutTest { | 8 class IndexedDBLayoutTest : public InProcessBrowserLayoutTest { |
| 9 public: | 9 public: |
| 10 IndexedDBLayoutTest() : InProcessBrowserLayoutTest( | 10 IndexedDBLayoutTest() : InProcessBrowserLayoutTest( |
| (...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 "abort-in-initial-upgradeneeded.html", |
| 98 "open-with-version-blocked.html", |
| 99 "open-with-version-initial-version.html", |
| 100 // "open-with-version-with-delete.html", |
| 101 "open-with-version.html", |
| 102 "setversion-upgradeneeded-intertwined.html", |
| 103 NULL |
| 104 }; |
| 105 |
| 96 } | 106 } |
| 97 | 107 |
| 98 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, BasicTests) { | 108 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, BasicTests) { |
| 99 RunLayoutTests(kBasicTests); | 109 RunLayoutTests(kBasicTests); |
| 100 } | 110 } |
| 101 | 111 |
| 102 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, ComplexTests) { | 112 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, ComplexTests) { |
| 103 RunLayoutTests(kComplexTests); | 113 RunLayoutTests(kComplexTests); |
| 104 } | 114 } |
| 105 | 115 |
| 106 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IndexTests) { | 116 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IndexTests) { |
| 107 RunLayoutTests(kIndexTests); | 117 RunLayoutTests(kIndexTests); |
| 108 } | 118 } |
| 109 | 119 |
| 110 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, KeyTests) { | 120 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, KeyTests) { |
| 111 RunLayoutTests(kKeyTests); | 121 RunLayoutTests(kKeyTests); |
| 112 } | 122 } |
| 113 | 123 |
| 114 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, TransactionTests) { | 124 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, TransactionTests) { |
| 115 RunLayoutTests(kTransactionTests); | 125 RunLayoutTests(kTransactionTests); |
| 116 } | 126 } |
| 117 | 127 |
| 128 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IntVersionTests) { |
| 129 RunLayoutTests(kIntVersionTests); |
| 130 } |
| 131 |
| 118 // Frequent flaky timeouts. http://crbug.com/123685 | 132 // Frequent flaky timeouts. http://crbug.com/123685 |
| 119 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, DISABLED_RegressionTests) { | 133 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, DISABLED_RegressionTests) { |
| 120 RunLayoutTests(kRegressionTests); | 134 RunLayoutTests(kRegressionTests); |
| 121 } | 135 } |
| OLD | NEW |