Commit 19876327 authored by Chris Hall's avatar Chris Hall Committed by Commit Bot

Add language detection content browser test including nested nodes.

R=dmazzoni,aboxhall

Bug: 889370
Change-Id: I56bd50586a13d754d9dd1547e277d7daab216ec3
Reviewed-on: https://chromium-review.googlesource.com/c/1362698
Commit-Queue: Chris Hall <chrishall@chromium.org>
Reviewed-by: default avatarAlice Boxhall <aboxhall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#614252}
parent 20b12740
......@@ -1913,4 +1913,9 @@ IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
RunLanguageDetectionTest(FILE_PATH_LITERAL("lang-attribute.html"));
}
IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
LanguageDetectionLangAttributeNested) {
RunLanguageDetectionTest(FILE_PATH_LITERAL("lang-attribute-nested.html"));
}
} // namespace content
rootWebArea language='en-US'
++genericContainer language='en'
++++staticText language='en' name='This document is excellent.'
++++++inlineTextBox language='en' name='This document is excellent.'
++staticText language='es-ES' name='Este documento es excelente.'
++++inlineTextBox language='es-ES' name='Este documento es excelente.'
++genericContainer language='fr'
++++staticText language='fr' name='Ce document est excellent.'
++++++inlineTextBox language='fr' name='Ce document est excellent.'
++staticText language='en' name='This document is excellent.'
++++inlineTextBox language='en' name='This document is excellent.'
AXWebArea AXLanguage='en-US'
++AXGroup AXLanguage='en'
++++AXStaticText AXValue='This document is excellent.'
++AXStaticText AXValue='Este documento es excelente.' AXLanguage='es-ES'
++AXGroup AXLanguage='fr'
++++AXStaticText AXValue='Ce document est excellent.'
++AXStaticText AXValue='This document is excellent.' AXLanguage='en'
ROLE_SYSTEM_DOCUMENT READONLY FOCUSABLE language:en language:es-ES language:fr language:en
++IA2_ROLE_SECTION language:en
++++ROLE_SYSTEM_STATICTEXT name='This document is excellent.' language:en
++ROLE_SYSTEM_STATICTEXT name='Este documento es excelente.' language:es-ES
++IA2_ROLE_SECTION language:fr
++++ROLE_SYSTEM_STATICTEXT name='Ce document est excellent.' language:fr
++ROLE_SYSTEM_STATICTEXT name='This document is excellent.' language:en
<!--
@BLINK-ALLOW:language=*
@WIN-ALLOW:language:*
@MAC-ALLOW:AXLanguage*
-->
<!DOCTYPE html>
<html lang="en">
<body>
<div lang="es-ES">
<div lang="en">
<span>
This document is excellent.
</span>
</div>
<span>
Este documento es excelente.
</span>
</div>
<div lang="fr">
Ce document est excellent.
</div>
<span>
This document is excellent.
</span>
</body>
</html>
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