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

Side by Side Diff: LayoutTests/fast/forms/suggested-value.html

Issue 334793005: Minor change: use single quote for JavaScript code in layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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/suggested-value-after-setvalue.html » ('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> 2 <html>
3 <body> 3 <body>
4 <p id="description">This test setting suggested values on an input element 4 <p id="description">This test setting suggested values on an input element
5 and a textarea element. The dump below should have the "suggested value" 5 and a textarea element. The dump below should have the "suggested value"
6 instead of "initial value".</p> 6 instead of "initial value".</p>
7 <pre><input id="test" type="text" value="initial value"><input id="month" type=" month"><textarea id="textarea"></textarea><select id="select"><option>CA</option ><option>TX</option></select></pre> 7 <pre><input id="test" type="text" value="initial value"><input id="month" type=" month"><textarea id="textarea"></textarea><select id="select"><option>CA</option ><option>TX</option></select></pre>
8 <script src="../../resources/dump-as-markup.js"></script> 8 <script src="../../resources/dump-as-markup.js"></script>
9 <script> 9 <script>
10 10
11 var input = document.getElementById('test'); 11 var input = document.getElementById('test');
12 var month = document.getElementById('month'); 12 var month = document.getElementById('month');
13 var textarea = document.getElementById('textarea'); 13 var textarea = document.getElementById('textarea');
14 textarea.value = "initial value"; 14 textarea.value = 'initial value';
15 var select = document.getElementById('select'); 15 var select = document.getElementById('select');
16 select.selectedIndex = -1; 16 select.selectedIndex = -1;
17 var result = document.getElementById('result'); 17 var result = document.getElementById('result');
18 if (!window.internals) 18 if (!window.internals)
19 testFailed('This test requires internals object'); 19 testFailed('This test requires internals object');
20 else { 20 else {
21 input.focus(); 21 input.focus();
22 input.selectionStart = input.selectionEnd = 0; 22 input.selectionStart = input.selectionEnd = 0;
23 23
24 internals.setSuggestedValue(input, 'suggested value'); 24 internals.setSuggestedValue(input, 'suggested value');
(...skipping 14 matching lines...) Expand all
39 addTextResult('internals.suggestedValue(textarea)'); 39 addTextResult('internals.suggestedValue(textarea)');
40 addTextResult('select.value'); 40 addTextResult('select.value');
41 addTextResult('internals.suggestedValue(select)'); 41 addTextResult('internals.suggestedValue(select)');
42 42
43 Markup.dump(input.parentNode); 43 Markup.dump(input.parentNode);
44 } 44 }
45 45
46 </script> 46 </script>
47 </body> 47 </body>
48 </html> 48 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/suggested-value-after-setvalue.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698