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 <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 } else if (StartsWithASCII(line, deny_str, true)) { | 139 } else if (StartsWithASCII(line, deny_str, true)) { |
140 filters->push_back(Filter(base::UTF8ToUTF16( | 140 filters->push_back(Filter(base::UTF8ToUTF16( |
141 line.substr(deny_str.size())), | 141 line.substr(deny_str.size())), |
142 Filter::DENY)); | 142 Filter::DENY)); |
143 } else if (StartsWithASCII(line, wait_str, true)) { | 143 } else if (StartsWithASCII(line, wait_str, true)) { |
144 *wait_for = line.substr(wait_str.size()); | 144 *wait_for = line.substr(wait_str.size()); |
145 } | 145 } |
146 } | 146 } |
147 } | 147 } |
148 | 148 |
149 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { | 149 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE { |
150 ContentBrowserTest::SetUpCommandLine(command_line); | 150 ContentBrowserTest::SetUpCommandLine(command_line); |
151 // Enable <dialog>, which is used in some tests. | 151 // Enable <dialog>, which is used in some tests. |
152 CommandLine::ForCurrentProcess()->AppendSwitch( | 152 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
153 switches::kEnableExperimentalWebPlatformFeatures); | 153 switches::kEnableExperimentalWebPlatformFeatures); |
154 } | 154 } |
155 | 155 |
156 void RunTest(const base::FilePath::CharType* file_path); | 156 void RunTest(const base::FilePath::CharType* file_path); |
157 }; | 157 }; |
158 | 158 |
159 void DumpAccessibilityTreeTest::RunTest( | 159 void DumpAccessibilityTreeTest::RunTest( |
160 const base::FilePath::CharType* file_path) { | 160 const base::FilePath::CharType* file_path) { |
161 NavigateToURL(shell(), GURL(url::kAboutBlankURL)); | 161 NavigateToURL(shell(), GURL(url::kAboutBlankURL)); |
162 | 162 |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { | 589 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { |
590 RunTest(FILE_PATH_LITERAL("wbr.html")); | 590 RunTest(FILE_PATH_LITERAL("wbr.html")); |
591 } | 591 } |
592 | 592 |
593 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 593 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
594 AccessibilityAriaActivedescendant) { | 594 AccessibilityAriaActivedescendant) { |
595 RunTest(FILE_PATH_LITERAL("aria-activedescendant.html")); | 595 RunTest(FILE_PATH_LITERAL("aria-activedescendant.html")); |
596 } | 596 } |
597 | 597 |
598 } // namespace content | 598 } // namespace content |
OLD | NEW |