Chromium Code Reviews| Index: content/browser/accessibility/dump_accessibility_tree_browsertest.cc |
| diff --git a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc |
| index d2d1134bf7c8c394a8dcea0963a30bef4f02e53f..05facf145dab681b562978e2a5c55e9770d98e7c 100644 |
| --- a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc |
| +++ b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc |
| @@ -6,6 +6,7 @@ |
| #include <string> |
| #include <vector> |
| +#include "base/command_line.h" |
| #include "base/file_util.h" |
| #include "base/logging.h" |
| #include "base/path_service.h" |
| @@ -20,6 +21,7 @@ |
| #include "content/port/browser/render_widget_host_view_port.h" |
| #include "content/public/browser/web_contents.h" |
| #include "content/public/common/content_paths.h" |
| +#include "content/public/common/content_switches.h" |
| #include "content/public/common/url_constants.h" |
| #include "content/shell/browser/shell.h" |
| #include "content/test/accessibility_browser_test_utils.h" |
| @@ -119,6 +121,13 @@ class DumpAccessibilityTreeTest : public ContentBrowserTest { |
| } |
| } |
| + virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
| + ContentBrowserTest::SetUpCommandLine(command_line); |
| + // Enable <dialog>, which is used in some tests. |
| + CommandLine::ForCurrentProcess()->AppendSwitch( |
|
dmazzoni
2013/11/07 16:27:34
Nevermind, looks like you already did this. That's
falken
2013/11/08 05:03:56
Yes, I realized I could do it this way after sendi
|
| + switches::kEnableExperimentalWebPlatformFeatures); |
| + } |
| + |
| void RunTest(const base::FilePath::CharType* file_path); |
| }; |
| @@ -410,6 +419,21 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityListMarkers) { |
| RunTest(FILE_PATH_LITERAL("list-markers.html")); |
| } |
| +IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| + AccessibilityModalDialogClosed) { |
| + RunTest(FILE_PATH_LITERAL("modal-dialog-closed.html")); |
| +} |
| + |
| +IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| + AccessibilityModalDialogOpened) { |
| + RunTest(FILE_PATH_LITERAL("modal-dialog-opened.html")); |
| +} |
| + |
| +IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| + AccessibilityModalDialogStack) { |
| + RunTest(FILE_PATH_LITERAL("modal-dialog-stack.html")); |
| +} |
| + |
| IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) { |
| RunTest(FILE_PATH_LITERAL("p.html")); |
| } |