Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255

This commit is contained in:
James Graham 2015-03-27 09:15:38 +00:00
parent b2a5225831
commit 1a81b18b9f
12321 changed files with 544385 additions and 6 deletions

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<title>ARIA 1.0 Test Case 670</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>ARIA 1.0 Test Case 670</h1>
<ul role="listbox">
<li role="option" aria-selected="true" id="ID_OPTION" tabindex="0">Option 1</li>
<li role="option">Option 2</li>
</ul>
<h2>Description</h2>
<p>For an element with role role "option" which is a child of an element with
role "listbox", and the value of the "aria-selected" attribute is equal
to "true".</p>
<script type="text/javascript">
function setFocus() {
var node = document.getElementById('ID_OPTION');
node.focus();
}
window.addEventListener('load', setFocus);
</script>
</body>
</html>

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<head>
<title>ARIA 1.0 Test Case 671</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>ARIA 1.0 Test Case 671</h1>
<ul role="listbox">
<li role="option" aria-selected="false" id="ID_OPTION" tabindex="0">Option 1</li>
<li role="option">Option 2</li>
</ul>
<h2>Description</h2>
<p>For an element with role role "option" which is a child of an element with
role "listbox", and the value of the "aria-selected" attribute is NOT equal
to "true" or the attribute is undefined.</p>
<script type="text/javascript">
function setFocus() {
var test_node = document.getElementById('ID_OPTION');
test_node.focus();
}
window.addEventListener('load', setFocus);
</script>
</body>
</html>

View file

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>ARIA 1.0 Test Case 672</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>ARIA 1.0 Test Case 672</h1>
<ul role="listbox">
<li role="option" aria-selected="false" id="TEST_ID" tabindex="0">Option 1</li>
<li role="option">Option 2</li>
</ul>
<h2>Description</h2>
<p>For an element with role "option" which is a child of an element with role "listbox",
and the value of the "aria-selected" attribute changes (from "true", or to "true").</p>
<script type="text/javascript">
function changeSelectedState() {
var test_node = document.getElementById('TEST_ID');
var state = test_node.getAttribute('aria-selected');
if (state === 'false') test_node.setAttribute('aria-selected', 'true');
else test_node.setAttribute('aria-selected', 'true');
}
function setFocus() {
var test_node = document.getElementById('TEST_ID');
test_node.focus();
setTimeout(changeSelectedState,1000);
}
window.addEventListener('load', setFocus);
</script>
</body>
</html>