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

Side by Side Diff: content/browser/accessibility/dump_accessibility_tree_helper_mac.mm

Issue 11785038: Update and rebaseline many DumpAccessibilityTree tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove bug comments that no longer apply Created 7 years, 11 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 "content/browser/accessibility/dump_accessibility_tree_helper.h" 5 #include "content/browser/accessibility/dump_accessibility_tree_helper.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 14 matching lines...) Expand all
25 return UTF8ToUTF16([tmp cStringUsingEncoding:NSUTF8StringEncoding]); 25 return UTF8ToUTF16([tmp cStringUsingEncoding:NSUTF8StringEncoding]);
26 } 26 }
27 } 27 }
28 28
29 void DumpAccessibilityTreeHelper::Initialize() {} 29 void DumpAccessibilityTreeHelper::Initialize() {}
30 30
31 string16 DumpAccessibilityTreeHelper::ToString(BrowserAccessibility* node, 31 string16 DumpAccessibilityTreeHelper::ToString(BrowserAccessibility* node,
32 char* prefix) { 32 char* prefix) {
33 StartLine(); 33 StartLine();
34 Add(true, Format(node, "", @selector(role), "")); 34 Add(true, Format(node, "", @selector(role), ""));
35 Add(true, Format(node, "subrole=", @selector(subrole), "")); 35 Add(false, Format(node, "subrole=", @selector(subrole), ""));
36 Add(false, Format(node, "roleDescription='", 36 Add(false, Format(node, "roleDescription='",
37 @selector(roleDescription), 37 @selector(roleDescription),
38 "'")); 38 "'"));
39 Add(true, Format(node, "title='", @selector(title), "'")); 39 Add(true, Format(node, "title='", @selector(title), "'"));
40 Add(true, Format(node, "value='", @selector(value), "'")); 40 Add(true, Format(node, "value='", @selector(value), "'"));
41 Add(false, Format(node, "description='", @selector(description), "'")); 41 Add(false, Format(node, "description='", @selector(description), "'"));
42 Add(false, Format(node, "help='", @selector(help), "'")); 42 Add(false, Format(node, "help='", @selector(help), "'"));
43 return ASCIIToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n"); 43 return ASCIIToUTF16(prefix) + FinishLine() + ASCIIToUTF16("\n");
44 } 44 }
45 45
46 const FilePath::StringType DumpAccessibilityTreeHelper::GetActualFileSuffix() 46 const FilePath::StringType DumpAccessibilityTreeHelper::GetActualFileSuffix()
47 const { 47 const {
48 return FILE_PATH_LITERAL("-actual-mac.txt"); 48 return FILE_PATH_LITERAL("-actual-mac.txt");
49 } 49 }
50 50
51 const FilePath::StringType DumpAccessibilityTreeHelper::GetExpectedFileSuffix() 51 const FilePath::StringType DumpAccessibilityTreeHelper::GetExpectedFileSuffix()
52 const { 52 const {
53 return FILE_PATH_LITERAL("-expected-mac.txt"); 53 return FILE_PATH_LITERAL("-expected-mac.txt");
54 } 54 }
55 55
56 const std::string DumpAccessibilityTreeHelper::GetAllowString() const { 56 const std::string DumpAccessibilityTreeHelper::GetAllowString() const {
57 return "@MAC-ALLOW:"; 57 return "@MAC-ALLOW:";
58 } 58 }
59 59
60 const std::string DumpAccessibilityTreeHelper::GetDenyString() const { 60 const std::string DumpAccessibilityTreeHelper::GetDenyString() const {
61 return "@MAC-DENY:"; 61 return "@MAC-DENY:";
62 } 62 }
63 63
64 } // namespace content 64 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698