Index: LayoutTests/fast/dom/HTMLKeygenElement/keygen.html |
diff --git a/LayoutTests/fast/dom/HTMLKeygenElement/keygen.html b/LayoutTests/fast/dom/HTMLKeygenElement/keygen.html |
index 1070a24005cbd272f96e5f7125d5882034caf131..139a969ea9681a08d4e668909b5853611663f7d8 100644 |
--- a/LayoutTests/fast/dom/HTMLKeygenElement/keygen.html |
+++ b/LayoutTests/fast/dom/HTMLKeygenElement/keygen.html |
@@ -1,17 +1,18 @@ |
<!DOCTYPE html> |
-<html> |
-<head> |
<script src="../../../resources/js-test.js"></script> |
-</head> |
-<body> |
<keygen id="keys" /> |
-<pre id="console"> |
-This tests the keygen element. |
- |
-</pre> |
<script> |
+description("This tests the keygen element"); |
+ |
var keygen = document.getElementById('keys'); |
shouldBe('keygen.options', 'undefined'); // keygen is not a select |
+shouldBeEqualToString('keygen.type', 'keygen'); |
+shouldBeEqualToString('keygen.keytype', 'rsa'); |
+shouldBeNull('keygen.getAttribute("keytype")'); |
+shouldBeEqualToString('keygen.keytype = "foo"; keygen.keytype', ''); |
+shouldBeEqualToString('keygen.getAttribute("KEYtype")', 'foo'); |
+shouldBeEqualToString('keygen.setAttribute("keytype", "bar"); keygen.keytype', ''); |
+shouldBeEqualToString('keygen.getAttribute("KeyType")', 'bar'); |
if (window.internals) { |
var shadow = internals.shadowRoot(keygen); |
@@ -19,5 +20,3 @@ if (window.internals) { |
shouldBe('internals.shadowRoot(shadow.firstChild)', 'null'); |
} |
</script> |
-</body> |
-</html> |