mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
parent
8758d7d11a
commit
ad6c511a5e
6 changed files with 58 additions and 27 deletions
|
@ -10,10 +10,9 @@
|
|||
is_not(document.activeElement, null, "test_1.1, document.activeElement");
|
||||
is(document.activeElement, document.body, "test_1.2, document.activeElement");
|
||||
|
||||
//TODO: uncomment following lines when focus() method will be available
|
||||
//document.getElementById('foo').focus();
|
||||
document.getElementById('foo').focus();
|
||||
is_not(document.activeElement, null, "test_2.1, document.activeElement");
|
||||
//is(document.activeElement, document.getElementById("foo"), "test_2.2, document.activeElement");
|
||||
is(document.activeElement, document.getElementById("foo"), "test_2.2, document.activeElement");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
25
tests/content/test_focus_blur.html
Normal file
25
tests/content/test_focus_blur.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<script src="harness.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<input id="a">
|
||||
<input id="b">
|
||||
<script>
|
||||
var a = document.getElementById("a");
|
||||
var b = document.getElementById("b");
|
||||
|
||||
is(document.activeElement, document.body);
|
||||
a.focus();
|
||||
is(document.activeElement, a);
|
||||
b.focus();
|
||||
is(document.activeElement, b);
|
||||
a.blur();
|
||||
is(document.activeElement, b);
|
||||
b.blur();
|
||||
is(document.activeElement, document.body);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1704,12 +1704,6 @@
|
|||
[HTMLElement interface: attribute tabIndex]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLElement interface: operation focus()]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLElement interface: operation blur()]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLElement interface: attribute accessKey]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1959,12 +1953,6 @@
|
|||
[HTMLElement interface: document.createElement("noscript") must inherit property "tabIndex" with the proper type (14)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLElement interface: document.createElement("noscript") must inherit property "focus" with the proper type (15)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLElement interface: document.createElement("noscript") must inherit property "blur" with the proper type (16)]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLElement interface: document.createElement("noscript") must inherit property "accessKey" with the proper type (17)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -20,10 +20,3 @@
|
|||
|
||||
[A disabled <input[type=radio\]> should not be focusable]
|
||||
expected: FAIL
|
||||
|
||||
[A disabled <a> should be focusable]
|
||||
expected: FAIL
|
||||
|
||||
[A disabled <span> should be focusable]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue