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

Side by Side Diff: third_party/WebKit/PerformanceTests/DOM/delete-in-password-field.html

Issue 2880203002: Move PerformanceTests/Editing/delete-in-password-field.html to DOM/ (Closed)
Patch Set: update Created 3 years, 7 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 | third_party/WebKit/PerformanceTests/Editing/delete-in-password-field.html » ('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 <script src="../resources/runner.js"></script> 2 <script src="../resources/runner.js"></script>
3 <div id="hidden" style="height:0px; overflow:hidden;"></div> 3 <div id="hidden" style="height:0px; overflow:hidden;"></div>
4 <input type="password"> 4 <input type="password">
5 <script> 5 <script>
6 const kCount = 100; 6 const kCount = 100;
7 const hidden = document.getElementById('hidden'); 7 const hidden = document.getElementById('hidden');
8 const password = document.querySelector('input[type=password]'); 8 const password = document.querySelector('input[type=password]');
9 hidden.innerHTML= '<p>foo bar</p>'.repeat(999); 9 hidden.innerHTML= '<p>foo bar</p>'.repeat(999);
10 10
11 PerfTestRunner.measureTime({ 11 PerfTestRunner.measureTime({
12 description: 'Measures performance of delete in password field with many hidde n elements', 12 description: 'Measures performance of delete in password field with many hidde n elements',
13 setup: () => { 13 setup: () => {
14 password.value = 'x'.repeat(kCount); 14 password.value = 'x'.repeat(kCount);
15 password.focus(); 15 password.focus();
16 }, 16 },
17 run: () => { 17 run: () => {
18 for (let counter = 0; counter < kCount; ++counter) 18 for (let counter = 0; counter < kCount; ++counter)
19 document.execCommand('delete'); 19 document.execCommand('delete');
20 }, 20 },
21 }); 21 });
22 </script> 22 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/PerformanceTests/Editing/delete-in-password-field.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698