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

Side by Side Diff: LayoutTests/editing/pasteboard/paste-placeholder-input.html

Issue 48903019: Delete js-test-post.js. (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 <title>Test -webkit-user-select with a placeholder in a textfield.</title> 4 <title>Test -webkit-user-select with a placeholder in a textfield.</title>
5 <script src="../../fast/js/resources/js-test-pre.js"></script> 5 <script src="../../fast/js/resources/js-test-pre.js"></script>
6 <style> 6 <style>
7 * { -webkit-user-select: none; } 7 * { -webkit-user-select: none; }
8 input { -webkit-user-select: text; } 8 input { -webkit-user-select: text; }
9 </style> 9 </style>
10 </head> 10 </head>
11 <body> 11 <body>
12 <p id="description"></p> 12 <p id="description"></p>
13 <div id="console"></div> 13 <div id="console"></div>
14 <input id="x" value="PASS"> 14 <input id="x" value="PASS">
15 <script> 15 <script>
16 description("Test that deleting the text in a textfield, and pasting, doesn' t hit an issue with -webkit-user-select on br"); 16 description("Test that deleting the text in a textfield, and pasting, doesn' t hit an issue with -webkit-user-select on br");
17 17
18 var input = document.getElementById("x"); 18 var input = document.getElementById("x");
19 input.focus(); 19 input.focus();
20 input.select(); 20 input.select();
21 21
22 document.execCommand("Copy"); 22 document.execCommand("Copy");
23 document.execCommand("Delete"); 23 document.execCommand("Delete");
24 document.execCommand("Paste"); 24 document.execCommand("Paste");
25 25
26 shouldBe('input.value', '"PASS"'); 26 shouldBe('input.value', '"PASS"');
27 27
28 </script> 28 </script>
29 <script src="../../fast/js/resources/js-test-post.js"></script>
30 </body> 29 </body>
31 </html> 30 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/pasteboard/paste-and-sanitize.html ('k') | LayoutTests/editing/pasteboard/paste-text-events.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698