Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: content/browser/accessibility/accessibility_win_browsertest.cc

Issue 1308153012: Uses isEditable and isRichlyEditable to determine which attributes to expose on Mac and how to repr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit test by adding EDITABLE role manually. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <vector> 5 #include <vector>
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "base/win/scoped_bstr.h" 10 #include "base/win/scoped_bstr.h"
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 864
865 bool found = false; 865 bool found = false;
866 FindNodeInAccessibilityTree( 866 FindNodeInAccessibilityTree(
867 browser_accessible.get(), ROLE_SYSTEM_DOCUMENT, L"MyDocument", 0, &found); 867 browser_accessible.get(), ROLE_SYSTEM_DOCUMENT, L"MyDocument", 0, &found);
868 ASSERT_EQ(found, true); 868 ASSERT_EQ(found, true);
869 } 869 }
870 870
871 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, 871 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest,
872 SupportsISimpleDOM) { 872 SupportsISimpleDOM) {
873 LoadInitialAccessibilityTreeFromHtml( 873 LoadInitialAccessibilityTreeFromHtml(
874 "<body><input type='checkbox' /></body>"); 874 "<body><input type='checkbox'></body>");
875 875
876 // Get the IAccessible object for the document. 876 // Get the IAccessible object for the document.
877 base::win::ScopedComPtr<IAccessible> document_accessible( 877 base::win::ScopedComPtr<IAccessible> document_accessible(
878 GetRendererAccessible()); 878 GetRendererAccessible());
879 ASSERT_NE(document_accessible.get(), reinterpret_cast<IAccessible*>(NULL)); 879 ASSERT_NE(document_accessible.get(), reinterpret_cast<IAccessible*>(NULL));
880 880
881 // Get the ISimpleDOM object for the document. 881 // Get the ISimpleDOM object for the document.
882 base::win::ScopedComPtr<IServiceProvider> service_provider; 882 base::win::ScopedComPtr<IServiceProvider> service_provider;
883 HRESULT hr = static_cast<IAccessible*>(document_accessible.get()) 883 HRESULT hr = static_cast<IAccessible*>(document_accessible.get())
884 ->QueryInterface(service_provider.Receive()); 884 ->QueryInterface(service_provider.Receive());
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, 1461 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest,
1462 TestMultiLineTextAtOffsetWithBoundaryAll) { 1462 TestMultiLineTextAtOffsetWithBoundaryAll) {
1463 base::win::ScopedComPtr<IAccessibleText> textarea_text; 1463 base::win::ScopedComPtr<IAccessibleText> textarea_text;
1464 SetUpTextareaField(&textarea_text); 1464 SetUpTextareaField(&textarea_text);
1465 1465
1466 CheckTextAtOffset(textarea_text, CONTENTS_LENGTH - 1, IA2_TEXT_BOUNDARY_ALL, 1466 CheckTextAtOffset(textarea_text, CONTENTS_LENGTH - 1, IA2_TEXT_BOUNDARY_ALL,
1467 0, CONTENTS_LENGTH, base::SysUTF8ToWide(TEXTAREA_CONTENTS)); 1467 0, CONTENTS_LENGTH, base::SysUTF8ToWide(TEXTAREA_CONTENTS));
1468 } 1468 }
1469 1469
1470 } // namespace content 1470 } // namespace content
OLDNEW
« no previous file with comments | « components/test_runner/web_ax_object_proxy.cc ('k') | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698