Index: content/browser/in_process_webkit/indexed_db_browsertest.cc |
diff --git a/content/browser/in_process_webkit/indexed_db_browsertest.cc b/content/browser/in_process_webkit/indexed_db_browsertest.cc |
index 57a73c7db882c0fc83fae6b2c654e1430f982dc5..5b71fda51c013b6347518770e256c1446774cb5f 100644 |
--- a/content/browser/in_process_webkit/indexed_db_browsertest.cc |
+++ b/content/browser/in_process_webkit/indexed_db_browsertest.cc |
@@ -234,6 +234,26 @@ IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithVersion0Schema, MigrationTest) { |
SimpleTest(GetTestUrl("indexeddb", "migration_test.html")); |
} |
+IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, LevelDBLogFileTest) { |
+ // Any page that opens an IndexedDB will work here. |
+ SimpleTest(GetTestUrl("indexeddb", "database_test.html")); |
+ scoped_refptr<IndexedDBContext> context = |
+ BrowserContext::GetDefaultStoragePartition( |
+ shell()->web_contents()->GetBrowserContext())-> |
+ GetIndexedDBContext(); |
+ IndexedDBContextImpl* context_impl = |
+ static_cast<IndexedDBContextImpl*>(context.get()); |
+ FilePath leveldb_dir(FILE_PATH_LITERAL("file__0.indexeddb.leveldb")); |
+ FilePath log_file(FILE_PATH_LITERAL("LOG")); |
+ FilePath log_file_path = |
+ context_impl->data_path().Append(leveldb_dir).Append(log_file); |
+ int64 size; |
+ EXPECT_TRUE(file_util::GetFileSize(log_file_path, &size)); |
+ EXPECT_GT(size, 0); |
+} |
+ |
+// Converted pyauto tests begin here. |
jsbell
2012/10/11 23:58:05
What is the purpose of this comment?
dgrogan
2012/10/12 01:41:30
Just makes finding the end of the "regular" browse
|
+ |
// Verify null key path persists after restarting browser. |
IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, PRE_NullKeyPathPersistence) { |
NavigateAndWaitForTitle(shell(), "bug_90635.html", "#part1", |