Commit 4aedd4df authored by nektar's avatar nektar Committed by Commit bot

Ensures that any accessibility attributes on Windows whose values have not...

Ensures that any accessibility attributes on Windows whose values have not been specified get a default value in tests.

BUG=508794
R=dmazzoni@chromium.org

Review URL: https://codereview.chromium.org/1806813003

Cr-Commit-Position: refs/heads/master@{#381568}
parent 0a107cab
......@@ -356,7 +356,7 @@ base::string16 AccessibilityTreeFormatterWin::ToString(
break;
}
case base::Value::TYPE_INTEGER: {
int int_value;
int int_value = 0;
value->GetAsInteger(&int_value);
WriteAttribute(false,
base::StringPrintf(L"%ls=%d",
......@@ -367,7 +367,7 @@ base::string16 AccessibilityTreeFormatterWin::ToString(
break;
}
case base::Value::TYPE_DOUBLE: {
double double_value;
double double_value = 0.0;
value->GetAsDouble(&double_value);
WriteAttribute(false,
base::StringPrintf(L"%ls=%.2f",
......
......@@ -1987,32 +1987,6 @@ base.dll!base::Thread::ThreadMain
base.dll!base::`anonymous namespace'::ThreadFunc
KERNEL32.dll!BaseThreadInitThunk
UNINITIALIZED READ
name=bug_508794a
...
ucrtbase.dll!ismbblead
ucrtbase.dll!free_base
ucrtbase.dll!_stdio_common_vsnwprintf_s
ucrtbase.dll!_stdio_common_vsnwprintf_s
*!base::vswprintf
*!base::`anonymous namespace'::StringAppendVT<>
*!base::StringPrintf
*!content::AccessibilityTreeFormatterWin::ToString
*!content::AccessibilityTreeFormatter::RecursiveFormatAccessibilityTree
UNADDRESSABLE ACCESS
name=bug_508794b
ucrtbase.dll!wcsnlen
ucrtbase.dll!ismbblead
ucrtbase.dll!free_base
ucrtbase.dll!_stdio_common_vsnwprintf_s
ucrtbase.dll!_stdio_common_vsnwprintf_s
*!base::vswprintf
*!base::`anonymous namespace'::StringAppendVT<>
*!base::StringPrintf
*!content::AccessibilityTreeFormatterWin::ToString
*!content::AccessibilityTreeFormatter::RecursiveFormatAccessibilityTree
UNADDRESSABLE ACCESS
name=bug_534881
...
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment