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

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

Issue 58533003: Move fast/js/resources files to resources. (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="../../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('A test for maxlength attribute of an input element with non-text ty pe'); 10 description('A test for maxlength attribute of an input element with non-text ty pe');
11 11
12 var input = document.createElement('input'); 12 var input = document.createElement('input');
13 input.maxLength = 2; 13 input.maxLength = 2;
14 input.type = 'number'; 14 input.type = 'number';
15 document.body.appendChild(input); 15 document.body.appendChild(input);
16 input.focus(); 16 input.focus();
17 document.execCommand('insertText', false, '1234'); 17 document.execCommand('insertText', false, '1234');
18 shouldBe('input.value', '"1234"'); 18 shouldBe('input.value', '"1234"');
19 19
20 input.parentNode.removeChild(input); 20 input.parentNode.removeChild(input);
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/input-maxlength-ime-preedit.html ('k') | LayoutTests/fast/forms/input-minmax.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698