| 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")) { |
| 11 } | 11 } |
| 12 | 12 |
| 13 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { | |
| 14 InProcessBrowserLayoutTest::SetUpInProcessBrowserTestFixture(); | |
| 15 AddResourceForLayoutTest( | |
| 16 FilePath().AppendASCII("fast").AppendASCII("js"), | |
| 17 FilePath().AppendASCII("resources")); | |
| 18 } | |
| 19 | |
| 20 void RunLayoutTests(const char* file_names[]) { | 13 void RunLayoutTests(const char* file_names[]) { |
| 21 for (size_t i = 0; file_names[i]; i++) | 14 for (size_t i = 0; file_names[i]; i++) |
| 22 RunLayoutTest(file_names[i]); | 15 RunLayoutTest(file_names[i]); |
| 23 } | 16 } |
| 24 }; | 17 }; |
| 25 | 18 |
| 26 namespace { | 19 namespace { |
| 27 | 20 |
| 28 static const char* kBasicTests[] = { | 21 static const char* kBasicTests[] = { |
| 29 "basics.html", | 22 "basics.html", |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 125 } |
| 133 | 126 |
| 134 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IntVersionTests) { | 127 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, IntVersionTests) { |
| 135 RunLayoutTests(kIntVersionTests); | 128 RunLayoutTests(kIntVersionTests); |
| 136 } | 129 } |
| 137 | 130 |
| 138 // Frequent flaky timeouts. http://crbug.com/123685 | 131 // Frequent flaky timeouts. http://crbug.com/123685 |
| 139 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, RegressionTests) { | 132 IN_PROC_BROWSER_TEST_F(IndexedDBLayoutTest, RegressionTests) { |
| 140 RunLayoutTests(kRegressionTests); | 133 RunLayoutTests(kRegressionTests); |
| 141 } | 134 } |
| OLD | NEW |