| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string.h> | 5 #include <string.h> |
| 6 | 6 |
| 7 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 return false; | 111 return false; |
| 112 | 112 |
| 113 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete( | 113 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete( |
| 114 browser(), url, 1); | 114 browser(), url, 1); |
| 115 return true; | 115 return true; |
| 116 } | 116 } |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 // Test that an accessible page doesn't fail the accessibility audit. | 119 // Test that an accessible page doesn't fail the accessibility audit. |
| 120 IN_PROC_BROWSER_TEST_F( | 120 IN_PROC_BROWSER_TEST_F( |
| 121 InProcessAccessibilityBrowserTest, VerifyAccessibilityPass) { | 121 InProcessAccessibilityBrowserTest, DISABLED_VerifyAccessibilityPass) { |
| 122 ASSERT_TRUE(NavigateToURL(kPassHTML)); | 122 ASSERT_TRUE(NavigateToURL(kPassHTML)); |
| 123 | 123 |
| 124 std::string test_result; | 124 std::string test_result; |
| 125 EXPECT_TRUE(RunAccessibilityChecks(&test_result)); | 125 EXPECT_TRUE(RunAccessibilityChecks(&test_result)); |
| 126 | 126 |
| 127 // No error message on success. | 127 // No error message on success. |
| 128 EXPECT_EQ("", test_result); | 128 EXPECT_EQ("", test_result); |
| 129 } | 129 } |
| 130 | 130 |
| 131 // Test that a page that is not accessible will fail the accessibility audit. | 131 // Test that a page that is not accessible will fail the accessibility audit. |
| 132 IN_PROC_BROWSER_TEST_F( | 132 IN_PROC_BROWSER_TEST_F( |
| 133 InProcessAccessibilityBrowserTest, VerifyAccessibilityFail) { | 133 InProcessAccessibilityBrowserTest, VerifyAccessibilityFail) { |
| 134 ASSERT_TRUE(NavigateToURL(kFailHTML)); | 134 ASSERT_TRUE(NavigateToURL(kFailHTML)); |
| 135 | 135 |
| 136 std::string test_result; | 136 std::string test_result; |
| 137 EXPECT_FALSE(RunAccessibilityChecks(&test_result)); | 137 EXPECT_FALSE(RunAccessibilityChecks(&test_result)); |
| 138 | 138 |
| 139 // Error should NOT be empty on failure. | 139 // Error should NOT be empty on failure. |
| 140 EXPECT_NE("", test_result); | 140 EXPECT_NE("", test_result); |
| 141 } | 141 } |
| 142 | 142 |
| 143 } // namespace | 143 } // namespace |
| OLD | NEW |