Index: content/browser/in_process_webkit/indexed_db_uitest.cc |
diff --git a/content/browser/in_process_webkit/indexed_db_uitest.cc b/content/browser/in_process_webkit/indexed_db_uitest.cc |
index 99750c51dad23b73ded123ba60593f0a8cb91042..91112981cf69377e27ca824b90471c7cdbf96ba4 100644 |
--- a/content/browser/in_process_webkit/indexed_db_uitest.cc |
+++ b/content/browser/in_process_webkit/indexed_db_uitest.cc |
@@ -14,6 +14,12 @@ |
static const char* kLayoutTestFileNames[] = { |
// TODO(dgrogan): Put the other IDB layout tests here. |
"prefetch-bugfix-108071.html", |
+ "basics.html", |
+// "index-basics.html", // Too big. |
jsbell
2012/01/20 22:59:09
Add a link to the "stop using cookies to return te
dgrogan
2012/01/20 23:43:12
Done.
|
+}; |
+ |
+static const char* kWorkerTestFileNames[] = { |
+ "basics-workers.html", |
}; |
class IndexedDBUILayoutTest : public UILayoutTest { |
@@ -28,9 +34,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( |
jsbell
2012/01/20 22:59:09
+1 - The new version is much more readable
|
+ FilePath().AppendASCII("fast").AppendASCII("js"), |
+ FilePath().AppendASCII("resources")); |
+ AddResourceForLayoutTest( |
+ FilePath().AppendASCII("fast").AppendASCII("filesystem"), |
+ FilePath().AppendASCII("resources")); |
} |
FilePath test_dir_; |
@@ -43,3 +52,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); |
+} |