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

Unified Diff: LayoutTests/accessibility/language-attribute.html

Issue 790693002: Propose Layout Test accessibility/language-attribute.html. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/accessibility/language-attribute-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/language-attribute.html
diff --git a/LayoutTests/accessibility/language-attribute.html b/LayoutTests/accessibility/language-attribute.html
new file mode 100644
index 0000000000000000000000000000000000000000..87c9f6b1c0fa8de23b0568338e194dc4c9303174
--- /dev/null
+++ b/LayoutTests/accessibility/language-attribute.html
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+<meta http-equiv="content-language" content="en">
+</head>
+<body id="body">
+
+<p lang="pl">polish</p>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+
+ description("Check whether languages are reported properly");
+
+ if (window.accessibilityController) {
+ var body = document.getElementById("body");
+ body.focus();
+
+ var webPageLang = accessibilityController.focusedElement;
+ debug(webPageLang.language);
+
+ var lang = webPageLang.childAtIndex(0);
+ debug(lang.language);
+ }
+
+</script>
+
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/accessibility/language-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698