OLD | NEW |
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 Loading... |
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> |
OLD | NEW |