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

Side by Side Diff: LayoutTests/fast/forms/label/labels-add-htmlFor-label.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="../resources/common.js"></script> 5 <script src="../resources/common.js"></script>
6 <script src="../resources/label-test-util.js"></script> 6 <script src="../resources/label-test-util.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <p id="description"></p> 9 <p id="description"></p>
10 <div id="console"></div> 10 <div id="console"></div>
11 <script> 11 <script>
12 description('Test that the labels list of a form control is dynamically updated when adding a label whose htmlFor points to that control. '); 12 description('Test that the labels list of a form control is dynamically updated when adding a label whose htmlFor points to that control. ');
13 13
14 var tester = setupLabelsTest(); 14 var tester = setupLabelsTest();
15 for (var name in tester.dataSet) { 15 for (var name in tester.dataSet) {
16 var data = tester.getLabelableElementData(name); 16 var data = tester.getLabelableElementData(name);
17 if (data == null) 17 if (data == null)
18 continue; 18 continue;
19 19
20 debug('Check ' + data.name); 20 debug('Check ' + data.name);
21 var element = data.element; 21 var element = data.element;
22 shouldBe('element.labels.length', '0'); 22 shouldBe('element.labels.length', '0');
23 23
24 var label = document.createElement("label"); 24 var label = document.createElement("label");
25 label.htmlFor = element.id; 25 label.htmlFor = element.id;
26 tester.outerElement.appendChild(label); 26 tester.outerElement.appendChild(label);
27 shouldBe('element.labels.length', '1'); 27 shouldBe('element.labels.length', '1');
28 } 28 }
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698