Chromium Code Reviews| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 "transaction-rollback.html", | 85 "transaction-rollback.html", |
| 86 "transaction-storeNames-required.html", | 86 "transaction-storeNames-required.html", |
| 87 NULL | 87 NULL |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 static const char* kRegressionTests[] = { | 90 static const char* kRegressionTests[] = { |
| 91 "dont-commit-on-blocked.html", | 91 "dont-commit-on-blocked.html", |
| 92 NULL | 92 NULL |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 const char* kIntVersionTests[] = { | |
| 96 "intversion-abort-in-initial-upgradeneeded.html", | |
| 97 "intversion-and-setversion.html", | |
| 98 "intversion-blocked.html", | |
| 99 "intversion-close-between-events.html", | |
| 100 "intversion-close-in-oncomplete.html", | |
| 101 "intversion-close-in-upgradeneeded.html", | |
| 102 "intversion-delete-in-upgradeneeded.html", | |
| 103 // "intversion-gated-on-delete.html", // behaves slightly differently in DRT | |
|
jsbell
2012/08/29 15:50:07
Yeah, would love to strategize about that. The del
| |
| 104 "intversion-invalid-setversion-has-no-side-effects.html", | |
| 105 "intversion-long-queue.html", | |
| 106 "intversion-omit-parameter.html", | |
| 107 "intversion-open-with-version.html", | |
| 108 NULL | |
| 109 }; | |
| 110 | |
| 95 } | 111 } |
| 96 | 112 |
| 97 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, BasicTests) { | 113 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, BasicTests) { |
| 98 RunLayoutTests(kBasicTests); | 114 RunLayoutTests(kBasicTests); |
| 99 } | 115 } |
| 100 | 116 |
| 101 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, ComplexTests) { | 117 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, ComplexTests) { |
| 102 RunLayoutTests(kComplexTests); | 118 RunLayoutTests(kComplexTests); |
| 103 } | 119 } |
| 104 | 120 |
| 105 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IndexTests) { | 121 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IndexTests) { |
| 106 RunLayoutTests(kIndexTests); | 122 RunLayoutTests(kIndexTests); |
| 107 } | 123 } |
| 108 | 124 |
| 109 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, KeyTests) { | 125 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, KeyTests) { |
| 110 RunLayoutTests(kKeyTests); | 126 RunLayoutTests(kKeyTests); |
| 111 } | 127 } |
| 112 | 128 |
| 113 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, TransactionTests) { | 129 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, TransactionTests) { |
| 114 RunLayoutTests(kTransactionTests); | 130 RunLayoutTests(kTransactionTests); |
| 115 } | 131 } |
| 116 | 132 |
| 133 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IntVersionTests) { | |
| 134 RunLayoutTests(kIntVersionTests); | |
| 135 } | |
| 136 | |
| 117 // Frequent flaky timeouts. http://crbug.com/123685 | 137 // Frequent flaky timeouts. http://crbug.com/123685 |
| 118 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, RegressionTests) { | 138 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, RegressionTests) { |
| 119 RunLayoutTests(kRegressionTests); | 139 RunLayoutTests(kRegressionTests); |
| 120 } | 140 } |
| OLD | NEW |