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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/deleting/password-delete-performance.html

Issue 2753743004: Revive layout test unintentionally removed. (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This test ensures that deleting characters from a pa ssword field that follows large content blocks is not slow.
5 To run the test manually, delete the character from the password field. The user agent should not freeze.</p>
6
7 <div id="content" style="height:0px; overflow:hidden;"> </div>
8 <input id="field" type="password" value="A">
9
10 <script src="../editing.js"></script>
11 <script>
12 if (window.testRunner)
13 testRunner.dumpAsText();
14
15 var newContent = '<p>Lorem ipsum dolor sit amet, consectetuer adipis cing elit.</p>';
16 for (var i = 0; i < 13; i++) {
17 newContent += newContent;
18 }
19
20 var contentDiv = document.getElementById('content');
21 contentDiv.innerHTML = newContent;
22
23 document.getElementById("field").focus();
24 document.execCommand("Delete");
25
26 // We clear the content div to avoid having its content appear in th e test harness output.
27 if (window.testRunner)
28 contentDiv.innerHTML = "";
29 </script>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698