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

Side by Side Diff: LayoutTests/editing/deleting/password-delete-contents.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> 1 <!DOCTYPE>
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">This makes sure we are able to delete the contents of a pass word field: deleting a selection and evaluating the field contents.</p> 7 <p id="description">This makes sure we are able to delete the contents of a pass word field: deleting a selection and evaluating the field contents.</p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <input type="password" id="passwordField"> 9 <input type="password" id="passwordField">
10 <script> 10 <script>
11 11
12 if (!window.testRunner || !window.internals) 12 if (!window.testRunner || !window.internals)
13 testFailed('This test requires access to window.internals'); 13 testFailed('This test requires access to window.internals');
14 14
15 var textField; 15 var textField;
16 var desiredString = "hello"; 16 var desiredString = "hello";
17 function runTest(element) { 17 function runTest(element) {
18 textField = element; 18 textField = element;
19 19
20 textField.value = "helllo"; 20 textField.value = "helllo";
21 textField.focus(); 21 textField.focus();
22 22
23 shouldBe("passwordField.value='helllo'; passwordField.setSelectionRange(3, 4 ); testRunner.execCommand('Delete', false, null); passwordField.value", "'hello' "); 23 shouldBe("passwordField.value='helllo'; passwordField.setSelectionRange(3, 4 ); testRunner.execCommand('Delete', false, null); passwordField.value", "'hello' ");
24 24
25 textField.parentNode.removeChild(textField); 25 textField.parentNode.removeChild(textField);
26 } 26 }
27 27
28 runTest(document.getElementById('passwordField')); 28 runTest(document.getElementById('passwordField'));
29 29
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/deleting/delete-svg-001.html ('k') | LayoutTests/editing/execCommand/break-out-of-empty-list-item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698