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: LayoutTests/fast/forms/textarea-checkValidity-crash.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> 1 <!DOCTYPE html>
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">Bug 45681: Assertion failure about dirty flag changes of tex tarea elements.</p> 7 <p id="description">Bug 45681: Assertion failure about dirty flag changes of tex tarea elements.</p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 var ta = document.createElement('textarea'); 10 var ta = document.createElement('textarea');
11 ta.setAttribute('maxlength', '1'); 11 ta.setAttribute('maxlength', '1');
12 ta.value = 'abc'; // Make it dirty && invalid. 12 ta.value = 'abc'; // Make it dirty && invalid.
13 ta.checkValidity(); // This made an assertion failure. 13 ta.checkValidity(); // This made an assertion failure.
14 testPassed('Not crashed.'); 14 testPassed('Not crashed.');
15 15
16 ta.value = 'a'; // Make it dirty && valid. 16 ta.value = 'a'; // Make it dirty && valid.
17 ta.defaultValue = 'abc'; // Make it non-dirty && invalid. 17 ta.defaultValue = 'abc'; // Make it non-dirty && invalid.
18 ta.checkValidity(); // This made an assertion fail. 18 ta.checkValidity(); // This made an assertion fail.
19 testPassed('Not crashed.'); 19 testPassed('Not crashed.');
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698