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

Side by Side Diff: LayoutTests/editing/inserting/insert-html-into-text-field.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 <head> 1 <head>
2 <style> 2 <style>
3 #xtest { 3 #xtest {
4 x-border-style: none; 4 x-border-style: none;
5 box-sizing: border-box; 5 box-sizing: border-box;
6 font-size: 15px; 6 font-size: 15px;
7 height: 30px; 7 height: 30px;
8 padding: 15px; 8 padding: 15px;
9 } 9 }
10 </style> 10 </style>
11 </head> 11 </head>
12 <body> 12 <body>
13 <div id="content"> 13 <div id="content">
14 <p id="description"></p> 14 <p id="description"></p>
15 Steps: 15 Steps:
16 <ol> 16 <ol>
17 <li>Set caret after "foo" in below text field.</li> 17 <li>Set caret after "foo" in below text field.</li>
18 <li>Hit Ctrl+V to paste text.</li> 18 <li>Hit Ctrl+V to paste text.</li>
19 <li>You should see pasted text in text field.</li> 19 <li>You should see pasted text in text field.</li>
20 </ol> 20 </ol>
21 Text Field:<input id="test" value="foo"> 21 Text Field:<input id="test" value="foo">
22 </div> 22 </div>
23 <script src="../../fast/js/resources/js-test-pre.js"></script> 23 <script src="../../resources/js-test.js"></script>
24 <script> 24 <script>
25 description('InsertHTML should not be affected by CSS style'); 25 description('InsertHTML should not be affected by CSS style');
26 var textField = document.getElementById('test'); 26 var textField = document.getElementById('test');
27 textField.focus(); 27 textField.focus();
28 textField.setSelectionRange(textField.value.length, textField.value.length); 28 textField.setSelectionRange(textField.value.length, textField.value.length);
29 document.execCommand('InsertHTML', false, 'bar'); 29 document.execCommand('InsertHTML', false, 'bar');
30 shouldBeEqualToString('textField.value', 'foobar'); 30 shouldBeEqualToString('textField.value', 'foobar');
31 31
32 if (window.testRunner) 32 if (window.testRunner)
33 document.getElementById('content').outerHTML = ''; 33 document.getElementById('content').outerHTML = '';
34 </script> 34 </script>
35 </body> 35 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698