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

Side by Side Diff: LayoutTests/fast/forms/clone-input-with-dirty-value.html

Issue 8142040: Merge 96552 - REGRESSION(r94274): cloned text input loses value (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 2 months 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/clone-input-with-dirty-value-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <body> 3 <body>
4 <p>This tests cloning an input element with an edited value. 4 <p>This tests cloning an input element with an edited value.
5 The cloned input element should retain the edited value and you should see PASSE D blow.</p> 5 The cloned input element should retain the edited value and you should see PASSE D blow.</p>
6 <pre id="log"></pre> 6 <pre id="log"></pre>
7 <div><input id="test" title="1" type="text" value="FAIL"></div> 7 <div><input id="test" title="1" type="text" value="FAIL"></div>
8 <script type="text/javascript"> 8 <script type="text/javascript">
9 9
10 if (window.layoutTestController) 10 if (window.layoutTestController)
(...skipping 10 matching lines...) Expand all
21 21
22 clone.focus(); 22 clone.focus();
23 clone.selectionStart = clone.selectionEnd = clone.value.length; 23 clone.selectionStart = clone.selectionEnd = clone.value.length;
24 document.execCommand('InsertText', false, 'ED'); 24 document.execCommand('InsertText', false, 'ED');
25 25
26 document.getElementById('log').textContent = clone.value; 26 document.getElementById('log').textContent = clone.value;
27 27
28 </script> 28 </script>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/clone-input-with-dirty-value-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698