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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-maxlength.html

Issue 1522803002: Move textarea-related tests to fast/forms/textarea/, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@color-uaf
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
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="../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description('Tests for HTMLTextAreaElement.maxLength behaviors.'); 10 description('Tests for HTMLTextAreaElement.maxLength behaviors.');
11 11
12 var textArea = document.createElement('textarea'); 12 var textArea = document.createElement('textarea');
13 document.body.appendChild(textArea); 13 document.body.appendChild(textArea);
14 14
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 shouldBe('textArea.value', '"ABC"'); 169 shouldBe('textArea.value', '"ABC"');
170 170
171 // In the case maxlength='invalid' 171 // In the case maxlength='invalid'
172 createFocusedTextAreaWithMaxLength('invalid'); 172 createFocusedTextAreaWithMaxLength('invalid');
173 textArea.value = ''; 173 textArea.value = '';
174 document.execCommand('insertText', false, 'ABC'); 174 document.execCommand('insertText', false, 'ABC');
175 shouldBe('textArea.value', '"ABC"'); 175 shouldBe('textArea.value', '"ABC"');
176 </script> 176 </script>
177 </body> 177 </body>
178 </html> 178 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698