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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 if (result != "pass") { | 53 if (result != "pass") { |
54 std::string js_result; | 54 std::string js_result; |
55 ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractString( | 55 ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractString( |
56 the_browser->GetSelectedWebContents()->GetRenderViewHost(), L"", | 56 the_browser->GetSelectedWebContents()->GetRenderViewHost(), L"", |
57 L"window.domAutomationController.send(getLog())", &js_result)); | 57 L"window.domAutomationController.send(getLog())", &js_result)); |
58 FAIL() << "Failed: " << js_result; | 58 FAIL() << "Failed: " << js_result; |
59 } | 59 } |
60 } | 60 } |
61 }; | 61 }; |
62 | 62 |
63 // TODO(jsbell): Disabled to land WK76487; http://crbug.com/110956 has fix. | 63 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, CursorTest) { |
64 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DISABLED_CursorTest) { | |
65 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("cursor_test.html")))); | 64 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("cursor_test.html")))); |
66 } | 65 } |
67 | 66 |
68 // TODO(jsbell): Disabled to land WK76487; http://crbug.com/110956 has fix. | 67 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, CursorTestIncognito) { |
69 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DISABLED_CursorTestIncognito) { | |
70 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("cursor_test.html"))), | 68 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("cursor_test.html"))), |
71 true /* incognito */); | 69 true /* incognito */); |
72 } | 70 } |
73 | 71 |
74 // TODO(jsbell): Disabled to land WK76487; http://crbug.com/110956 has fix. | 72 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, CursorPrefetch) { |
75 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DISABLED_CursorPrefetch) { | |
76 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("cursor_prefetch.html")))); | 73 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("cursor_prefetch.html")))); |
77 } | 74 } |
78 | 75 |
79 // Flaky: http://crbug.com/70773 | 76 // Flaky: http://crbug.com/70773 |
80 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DISABLED_IndexTest) { | 77 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DISABLED_IndexTest) { |
81 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("index_test.html")))); | 78 SimpleTest(testUrl(FilePath(FILE_PATH_LITERAL("index_test.html")))); |
82 } | 79 } |
83 | 80 |
84 // Flaky: http://crbug.com/70773 | 81 // Flaky: http://crbug.com/70773 |
85 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DISABLED_KeyPathTest) { | 82 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTest, DISABLED_KeyPathTest) { |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 virtual void SetUpCommandLine(CommandLine* command_line) { | 323 virtual void SetUpCommandLine(CommandLine* command_line) { |
327 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); | 324 command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); |
328 } | 325 } |
329 }; | 326 }; |
330 | 327 |
331 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, | 328 IN_PROC_BROWSER_TEST_F(IndexedDBBrowserTestWithGCExposed, |
332 DatabaseCallbacksTest) { | 329 DatabaseCallbacksTest) { |
333 SimpleTest( | 330 SimpleTest( |
334 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); | 331 testUrl(FilePath(FILE_PATH_LITERAL("database_callbacks_first.html")))); |
335 } | 332 } |
OLD | NEW |