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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLKeygenElement/keygen-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <keygen id="keys" /> 3 <keygen id="keys" />
8 <pre id="console"> 4 <script>
9 This tests the keygen element. 5 description("This tests the keygen element");
10 6
11 </pre>
12 <script>
13 var keygen = document.getElementById('keys'); 7 var keygen = document.getElementById('keys');
14 shouldBe('keygen.options', 'undefined'); // keygen is not a select 8 shouldBe('keygen.options', 'undefined'); // keygen is not a select
9 shouldBeEqualToString('keygen.type', 'keygen');
10 shouldBeEqualToString('keygen.keytype', 'rsa');
11 shouldBeNull('keygen.getAttribute("keytype")');
12 shouldBeEqualToString('keygen.keytype = "foo"; keygen.keytype', '');
13 shouldBeEqualToString('keygen.getAttribute("KEYtype")', 'foo');
14 shouldBeEqualToString('keygen.setAttribute("keytype", "bar"); keygen.keytype', ' ');
15 shouldBeEqualToString('keygen.getAttribute("KeyType")', 'bar');
15 16
16 if (window.internals) { 17 if (window.internals) {
17 var shadow = internals.shadowRoot(keygen); 18 var shadow = internals.shadowRoot(keygen);
18 shouldBe('shadow.firstChild.tagName', '"SELECT"'); 19 shouldBe('shadow.firstChild.tagName', '"SELECT"');
19 shouldBe('internals.shadowRoot(shadow.firstChild)', 'null'); 20 shouldBe('internals.shadowRoot(shadow.firstChild)', 'null');
20 } 21 }
21 </script> 22 </script>
22 </body>
23 </html>
OLDNEW
« 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