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

Side by Side Diff: LayoutTests/fast/forms/textarea-set-defaultvalue-after-value.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">Tests to check behaviors of dirty flag and defaultValue chan ge.</p> 7 <p id="description">Tests to check behaviors of dirty flag and defaultValue chan ge.</p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <form id=form> 9 <form id=form>
10 <textarea name=textarea id=textarea> 10 <textarea name=textarea id=textarea>
11 default 11 default
12 </textarea> 12 </textarea>
13 </form> 13 </form>
14 14
(...skipping 23 matching lines...) Expand all
38 // Dirty by setValue(), then update defaultValue by DOM tree operations. 38 // Dirty by setValue(), then update defaultValue by DOM tree operations.
39 shouldBe('textarea.value = "script-updated"; textarea.value', '"script-updated"' ); 39 shouldBe('textarea.value = "script-updated"; textarea.value', '"script-updated"' );
40 shouldBe('textarea.removeChild(textarea.firstChild); textarea.appendChild(docume nt.createTextNode("default 5")); textarea.value', '"script-updated"'); 40 shouldBe('textarea.removeChild(textarea.firstChild); textarea.appendChild(docume nt.createTextNode("default 5")); textarea.value', '"script-updated"');
41 shouldBe('form.reset(); textarea.value', '"default 5"'); 41 shouldBe('form.reset(); textarea.value', '"default 5"');
42 shouldBe('textarea.removeChild(textarea.firstChild); textarea.appendChild(docume nt.createTextNode("default 6")); textarea.value', '"default 6"'); 42 shouldBe('textarea.removeChild(textarea.firstChild); textarea.appendChild(docume nt.createTextNode("default 6")); textarea.value', '"default 6"');
43 form.innerHTML = ''; 43 form.innerHTML = '';
44 </script> 44 </script>
45 45
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/textarea-selection-preservation.html ('k') | LayoutTests/fast/forms/textarea-textlength.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698