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

Unified Diff: LayoutTests/fast/dom/HTMLKeygenElement/keygen.html

Issue 123833005: Limit HTMLKeygenElement.keytype to only known values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased + updated reflect attribute syntax to current Created 6 years, 11 months 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/fast/dom/HTMLKeygenElement/keygen-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLKeygenElement/keygen-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698