Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Unified Diff: content/browser/in_process_webkit/indexed_db_browsertest.cc

Issue 6677034: Add IndexedDB browser test that causes a crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more explicit js, limit use of expose-gc Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 35f60b2abbe5869d627aaab53181dfc3ed037a26..47153758e7a5410397b531030c828e4125fd6eea 100644
--- a/content/browser/in_process_webkit/indexed_db_browsertest.cc
+++ b/content/browser/in_process_webkit/indexed_db_browsertest.cc
@@ -9,6 +9,7 @@
#include "base/scoped_temp_dir.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/common/chrome_switches.h"
#include "chrome/test/in_process_browser_test.h"
#include "chrome/test/testing_profile.h"
#include "chrome/test/thread_test_helper.h"
@@ -126,3 +127,16 @@ IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, ClearLocalState) {
ASSERT_FALSE(file_util::PathExists(temp_file_path_1));
ASSERT_TRUE(file_util::PathExists(temp_file_path_2));
}
+
+class IndexedDBBrowserTestWithGCExposed : public IndexedDBBrowserTest {
+ public:
+ virtual void SetUpCommandLine(CommandLine* command_line) {
+ command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc");
+ }
+};
+
+IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed,
+ DatabaseCallbacksTest) {
+ SimpleTest(
+ testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html"))));
+}

Powered by Google App Engine
This is Rietveld 408576698