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

Side by Side Diff: PerformanceTests/DOM/textarea-edit.html

Issue 478003002: Fill in descriptions on relevant blink_perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: alancutter nits Created 6 years, 2 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 | « PerformanceTests/DOM/textarea-dom.html ('k') | PerformanceTests/Layout/ArabicLineLayout.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 <body> 2 <body>
3 <style> 3 <style>
4 textarea:valid { 4 textarea:valid {
5 background-color: lime; 5 background-color: lime;
6 } 6 }
7 textarea:invalid { 7 textarea:invalid {
8 background-color: red; 8 background-color: red;
9 } 9 }
10 </style> 10 </style>
11 <script src="../resources/runner.js"></script> 11 <script src="../resources/runner.js"></script>
12 <textarea maxlength=2147483647 id="container"></textarea> 12 <textarea maxlength=2147483647 id="container"></textarea>
13 <script> 13 <script>
14 var container = document.getElementById('container'); 14 var container = document.getElementById('container');
15 container.focus(); 15 container.focus();
16 PerfTestRunner.measureRunsPerSecond({run: function() { 16 PerfTestRunner.measureRunsPerSecond({
17 for (var i = 0; i < 500; ++i) 17 description: "Measures performance of adding text to a textarea using docume nt.execCommand, then clearing it.",
18 document.execCommand('insertText', false, 'A quick brown fox jumps over the lazy dog.\n'); 18 run: function() {
19 container.value = ''; 19 for (var i = 0; i < 500; ++i)
20 }}); 20 document.execCommand('insertText', false, 'A quick brown fox jumps o ver the lazy dog.\n');
21 container.value = '';
22 }
23 });
21 </script> 24 </script>
22 </body> 25 </body>
OLDNEW
« no previous file with comments | « PerformanceTests/DOM/textarea-dom.html ('k') | PerformanceTests/Layout/ArabicLineLayout.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698