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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-minlength.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.minLength behaviors.'); 10 description('Tests for HTMLTextAreaElement.minLength 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 shouldBe('textArea.getAttribute("minlength")', '"6"'); // Not changed 46 shouldBe('textArea.getAttribute("minlength")', '"6"'); // Not changed
47 shouldBe('textArea.minLength = 10; textArea.getAttribute("minlength")', '"10"'); 47 shouldBe('textArea.minLength = 10; textArea.getAttribute("minlength")', '"10"');
48 48
49 textArea.minLength = null; 49 textArea.minLength = null;
50 shouldBe('textArea.minLength', '0'); 50 shouldBe('textArea.minLength', '0');
51 shouldBe('textArea.getAttribute("minlength")', '"0"'); 51 shouldBe('textArea.getAttribute("minlength")', '"0"');
52 52
53 </script> 53 </script>
54 </body> 54 </body>
55 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698