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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « PerformanceTests/DOM/textarea-dom.html ('k') | PerformanceTests/Layout/ArabicLineLayout.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/DOM/textarea-edit.html
diff --git a/PerformanceTests/DOM/textarea-edit.html b/PerformanceTests/DOM/textarea-edit.html
index 8fca013adc50cd61b4c4a758529716e613a1dded..0a71485efd0ff4ba09dfab3ebeb6ff86a9a8054e 100644
--- a/PerformanceTests/DOM/textarea-edit.html
+++ b/PerformanceTests/DOM/textarea-edit.html
@@ -13,10 +13,13 @@ textarea:invalid {
<script>
var container = document.getElementById('container');
container.focus();
-PerfTestRunner.measureRunsPerSecond({run: function() {
- for (var i = 0; i < 500; ++i)
- document.execCommand('insertText', false, 'A quick brown fox jumps over the lazy dog.\n');
- container.value = '';
-}});
+PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of adding text to a textarea using document.execCommand, then clearing it.",
+ run: function() {
+ for (var i = 0; i < 500; ++i)
+ document.execCommand('insertText', false, 'A quick brown fox jumps over the lazy dog.\n');
+ container.value = '';
+ }
+});
</script>
</body>
« 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