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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/option-label-trim-html-spaces.html

Issue 1509853008: Move select/option/optgroup-related tests in fast/forms to fast/forms/select. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <p id="description"></p>
9 <div id="console"></div>
10
11 <select>
12 <option id="o1"> text with extra while spaces </option>
13 <option id="o2"> text </option>
14 <option id="o3">&nbsp;test&nbsp;text&nbsp;</option>
15 <option id="o4"> test&nbsp;&nbsp;text </option>
16 </select>
17
18 <script>
19 description('Test for space striping .label attribute of OPTION element');
20
21 var o1 = document.getElementById('o1');
22 shouldBe('o1.label', '"text with extra while spaces"');
23
24 var o2 = document.getElementById('o2');
25 shouldBe('o2.label', '"text"');
26
27
28 var o3 = document.getElementById('o3');
29 var expected = '\u00A0'+'test'+'\u00A0'+ 'text'+'\u00A0';
30 shouldBe('o3.label','"'+expected+'"');
31
32 var o4 = document.getElementById('o4');
33 var expected = 'test'+'\u00A0\u00A0'+ 'text';
34 shouldBe('o4.label', '"'+expected+'"');
35 </script>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698