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

Side by Side Diff: LayoutTests/fast/forms/input-maxlength.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 <!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="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p>This page tests that the <tt>maxlength</tt> attribute of the <tt>&lt;input&gt ;</tt> element works correctly. <a href="http://bugs.webkit.org/show_bug.cgi?id= 14388">http://bugs.webkit.org/show_bug.cgi?id=14388</a></p> 7 <p>This page tests that the <tt>maxlength</tt> attribute of the <tt>&lt;input&gt ;</tt> element works correctly. <a href="http://bugs.webkit.org/show_bug.cgi?id= 14388">http://bugs.webkit.org/show_bug.cgi?id=14388</a></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 9
10 <input id="input"> 10 <input id="input">
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 46
47 debug('Some tests for .maxLength property.'); 47 debug('Some tests for .maxLength property.');
48 input = document.createElement("input"); 48 input = document.createElement("input");
49 shouldBe("input.maxLength", "implicitMaxLength"); 49 shouldBe("input.maxLength", "implicitMaxLength");
50 shouldThrow("input.maxLength = -1", "'IndexSizeError: Index or size was nega tive, or greater than the allowed value.'"); 50 shouldThrow("input.maxLength = -1", "'IndexSizeError: Index or size was nega tive, or greater than the allowed value.'");
51 input.maxLength = 100; 51 input.maxLength = 100;
52 shouldBe("input.getAttribute('maxlength')", "'100'"); 52 shouldBe("input.getAttribute('maxlength')", "'100'");
53 </script> 53 </script>
54 <script src="../../fast/js/resources/js-test-post.js"></script>
55 </body> 54 </body>
56 </html> 55 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/input-live-pseudo-selectors.html ('k') | LayoutTests/fast/forms/input-maxlength-ime-completed.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698