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: LayoutTests/fast/forms/basic-textareas.html

Issue 106773003: Make arguments to Document methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <script> 3 <script>
4 var docToAppendTo; 4 var docToAppendTo;
5 function addTextarea(properties, opt_innerHTML) { 5 function addTextarea(properties, opt_innerHTML) {
6 var title = docToAppendTo.createTextNode(); 6 var title = docToAppendTo.createTextNode('');
7 title.nodeValue = ''; 7 title.nodeValue = '';
8 var wrapper = docToAppendTo.createElement('div'); 8 var wrapper = docToAppendTo.createElement('div');
9 wrapper.style.cssText = 'display:inline-block;border:1px solid blue;font-siz e:12px;'; 9 wrapper.style.cssText = 'display:inline-block;border:1px solid blue;font-siz e:12px;';
10 var textarea = docToAppendTo.createElement('textarea'); 10 var textarea = docToAppendTo.createElement('textarea');
11 for (property in properties) { 11 for (property in properties) {
12 var value = properties[property]; 12 var value = properties[property];
13 title.nodeValue += property + ': "' + value + '", '; 13 title.nodeValue += property + ': "' + value + '", ';
14 if (property == 'wrap') 14 if (property == 'wrap')
15 textarea.setAttribute(property, value); 15 textarea.setAttribute(property, value);
16 else if (property == 'style') 16 else if (property == 'style')
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 document.body.appendChild(standardsIframe); 92 document.body.appendChild(standardsIframe);
93 93
94 var quirksIframe = document.createElement('iframe'); 94 var quirksIframe = document.createElement('iframe');
95 quirksIframe.onload = function(e) { 95 quirksIframe.onload = function(e) {
96 addAllTextareas(e.target, 'BackCompat'); 96 addAllTextareas(e.target, 'BackCompat');
97 } 97 }
98 document.body.appendChild(quirksIframe); 98 document.body.appendChild(quirksIframe);
99 </script> 99 </script>
100 </body> 100 </body>
101 </html> 101 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/wrapper-classes-expected.txt ('k') | LayoutTests/fast/inspector-support/uncaught-dom1-exception.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698