| 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/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // 3. Browse to the page and serialize the platform specific tree into a human | 49 // 3. Browse to the page and serialize the platform specific tree into a human |
| 50 // readable string. | 50 // readable string. |
| 51 // 4. Perform a comparison between actual and expected and fail if they do not | 51 // 4. Perform a comparison between actual and expected and fail if they do not |
| 52 // exactly match. | 52 // exactly match. |
| 53 class DumpAccessibilityTreeTest : public DumpAccessibilityTestBase { | 53 class DumpAccessibilityTreeTest : public DumpAccessibilityTestBase { |
| 54 public: | 54 public: |
| 55 void AddDefaultFilters(std::vector<Filter>* filters) override { | 55 void AddDefaultFilters(std::vector<Filter>* filters) override { |
| 56 filters->push_back(Filter(base::ASCIIToUTF16("FOCUSABLE"), Filter::ALLOW)); | 56 filters->push_back(Filter(base::ASCIIToUTF16("FOCUSABLE"), Filter::ALLOW)); |
| 57 filters->push_back(Filter(base::ASCIIToUTF16("READONLY"), Filter::ALLOW)); | 57 filters->push_back(Filter(base::ASCIIToUTF16("READONLY"), Filter::ALLOW)); |
| 58 filters->push_back(Filter(base::ASCIIToUTF16("name=*"), Filter::ALLOW)); | 58 filters->push_back(Filter(base::ASCIIToUTF16("name=*"), Filter::ALLOW)); |
| 59 filters->push_back(Filter(base::ASCIIToUTF16("roleDescription=*"), |
| 60 Filter::ALLOW)); |
| 59 filters->push_back(Filter(base::ASCIIToUTF16("*=''"), Filter::DENY)); | 61 filters->push_back(Filter(base::ASCIIToUTF16("*=''"), Filter::DENY)); |
| 60 } | 62 } |
| 61 | 63 |
| 62 void SetUpCommandLine(base::CommandLine* command_line) override { | 64 void SetUpCommandLine(base::CommandLine* command_line) override { |
| 63 DumpAccessibilityTestBase::SetUpCommandLine(command_line); | 65 DumpAccessibilityTestBase::SetUpCommandLine(command_line); |
| 64 // Enable <dialog>, which is used in some tests. | 66 // Enable <dialog>, which is used in some tests. |
| 65 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 67 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 66 switches::kEnableExperimentalWebPlatformFeatures); | 68 switches::kEnableExperimentalWebPlatformFeatures); |
| 67 } | 69 } |
| 68 | 70 |
| (...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1261 // crbug.com/281952 | 1263 // crbug.com/281952 |
| 1262 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) { | 1264 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) { |
| 1263 RunHtmlTest(FILE_PATH_LITERAL("video.html")); | 1265 RunHtmlTest(FILE_PATH_LITERAL("video.html")); |
| 1264 } | 1266 } |
| 1265 | 1267 |
| 1266 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { | 1268 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { |
| 1267 RunHtmlTest(FILE_PATH_LITERAL("wbr.html")); | 1269 RunHtmlTest(FILE_PATH_LITERAL("wbr.html")); |
| 1268 } | 1270 } |
| 1269 | 1271 |
| 1270 } // namespace content | 1272 } // namespace content |
| OLD | NEW |