summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authordgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-09 03:43:00 +0000
committerdgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-09 03:43:00 +0000
commitb301f5e8c9f64d1b9bdec6c709ec0038c60406d8 (patch)
tree15fbff39147b543f35c2d5faa51fceea0bf87ad1 /content
parent2704da5a4798565395472c04a5a6921e6e100cb1 (diff)
downloadchromium_src-b301f5e8c9f64d1b9bdec6c709ec0038c60406d8.zip
chromium_src-b301f5e8c9f64d1b9bdec6c709ec0038c60406d8.tar.gz
chromium_src-b301f5e8c9f64d1b9bdec6c709ec0038c60406d8.tar.bz2
IndexedDB: Start running worker layout tests as ui tests.
BUG=64054 TEST= Review URL: http://codereview.chromium.org/9269021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121169 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/in_process_webkit/indexed_db_uitest.cc25
1 files changed, 22 insertions, 3 deletions
diff --git a/content/browser/in_process_webkit/indexed_db_uitest.cc b/content/browser/in_process_webkit/indexed_db_uitest.cc
index 99750c5..5c0f782 100644
--- a/content/browser/in_process_webkit/indexed_db_uitest.cc
+++ b/content/browser/in_process_webkit/indexed_db_uitest.cc
@@ -14,6 +14,14 @@
static const char* kLayoutTestFileNames[] = {
// TODO(dgrogan): Put the other IDB layout tests here.
"prefetch-bugfix-108071.html",
+ "basics.html",
+// "objectstore-basics.html", // Too big: crbug.com/33472
+// "index-basics.html", // Too big.
+};
+
+static const char* kWorkerTestFileNames[] = {
+ "basics-workers.html",
+// "objectstore-basics-workers.html", // Too big.
};
class IndexedDBUILayoutTest : public UILayoutTest {
@@ -28,9 +36,12 @@ class IndexedDBUILayoutTest : public UILayoutTest {
void AddJSTestResources() {
// Add other paths our tests require.
- FilePath js_dir = FilePath().
- AppendASCII("fast").AppendASCII("js");
- AddResourceForLayoutTest(js_dir, FilePath().AppendASCII("resources"));
+ AddResourceForLayoutTest(
+ FilePath().AppendASCII("fast").AppendASCII("js"),
+ FilePath().AppendASCII("resources"));
+ AddResourceForLayoutTest(
+ FilePath().AppendASCII("fast").AppendASCII("filesystem"),
+ FilePath().AppendASCII("resources"));
}
FilePath test_dir_;
@@ -43,3 +54,11 @@ TEST_F(IndexedDBUILayoutTest, LayoutTests) {
for (size_t i = 0; i < arraysize(kLayoutTestFileNames); ++i)
RunLayoutTest(kLayoutTestFileNames[i], port);
}
+
+TEST_F(IndexedDBUILayoutTest, WorkerLayoutTests) {
+ const int port = kNoHttpPort;
+ InitializeForLayoutTest(test_dir_, FilePath(), port);
+ AddJSTestResources();
+ for (size_t i = 0; i < arraysize(kWorkerTestFileNames); ++i)
+ RunLayoutTest(kWorkerTestFileNames[i], port);
+}