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

Side by Side Diff: LayoutTests/fast/forms/form-radio-img-node-list.html

Issue 405383003: Add missing id/name check over img-based RadioNodeLists. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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/forms/form-radio-img-node-list-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 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <img name=outside1></img> 3 <img name=outside1></img>
4 <form id="f1"> 4 <form id="f1">
5 <button id=n1></button> 5 <button id=n1></button>
6 <keygen id=n1></keygen> 6 <keygen id=n1></keygen>
7 <output id=n1></output> 7 <output id=n1></output>
8 <object name=n1></object> 8 <object name=n1></object>
9 <select name=n1><option id=n1></option></select> 9 <select name=n1><option id=n1></option></select>
10 <input name=n1 type=hidden> 10 <input name=n1 type=hidden>
11 <input name=n1 type=image> 11 <input name=n1 type=image>
12 <input name=n1 type=text> 12 <input name=n1 type=text>
13 <input name=n2 type=image> 13 <input name=n2 type=image>
14 <img name=n2></img> 14 <img name=n2></img>
15 <img id=n2></img> 15 <img id=n2></img>
16 <img id=n3></img>
16 </form> 17 </form>
17 <!-- The img element isn't 'reassociatable'; add @form to verify it is so. --> 18 <!-- The img element isn't 'reassociatable'; add @form to verify it is so. -->
18 <img name=n2 form=f1></img> 19 <img name=n2 form=f1></img>
19 <script> 20 <script>
20 description("Test RadioNodeLists returned by the HTMLFormElement named-getter.") ; 21 description("Test RadioNodeLists returned by the HTMLFormElement named-getter.") ;
21 22
22 var radioNodeList; 23 var radioNodeList;
23 24
24 function shouldBeImgElement(n) { 25 function shouldBeImgElement(n) {
25 shouldBeTrue("radioNodeList[" + n + "] instanceof HTMLImageElement"); 26 shouldBeTrue("radioNodeList[" + n + "] instanceof HTMLImageElement");
(...skipping 14 matching lines...) Expand all
40 var button = document.createElement("button"); 41 var button = document.createElement("button");
41 button.name = "n2"; 42 button.name = "n2";
42 form.appendChild(button); 43 form.appendChild(button);
43 verifyLength(2); 44 verifyLength(2);
44 45
45 var img = document.createElement("img"); 46 var img = document.createElement("img");
46 img.name = "n2"; 47 img.name = "n2";
47 form.appendChild(img); 48 form.appendChild(img);
48 verifyLength(3); 49 verifyLength(3);
49 </script> 50 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/form-radio-img-node-list-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698