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

Unified Diff: PerformanceTests/CSS/StyleSheetInsert-bootstrap.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/CSS/StyleSheetInsert.html ('k') | PerformanceTests/Canvas/drawimage.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/CSS/StyleSheetInsert-bootstrap.html
diff --git a/PerformanceTests/CSS/StyleSheetInsert-bootstrap.html b/PerformanceTests/CSS/StyleSheetInsert-bootstrap.html
index 692ac643d5b11ccf9586d6342c4581d1d25a429c..1b0987cf9d4482b741fc7e53894c828b690f20f8 100644
--- a/PerformanceTests/CSS/StyleSheetInsert-bootstrap.html
+++ b/PerformanceTests/CSS/StyleSheetInsert-bootstrap.html
@@ -15,12 +15,15 @@ function loadText(path) {
}
var styleText = loadText("resources/bootstrap.min.css");
-PerfTestRunner.measureRunsPerSecond({run:function() {
- var testDoc = document.getElementsByTagName("iframe")[0].contentDocument;
- testDoc.documentElement.innerHTML = "";
- var style = testDoc.createElement("style");
- style.textContent = styleText;
- testDoc.documentElement.appendChild(style);
-}});
+PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of inserting a style elemenet ocntaining bootstrap's CSS into an iframe.",
+ run:function() {
+ var testDoc = document.getElementsByTagName("iframe")[0].contentDocument;
+ testDoc.documentElement.innerHTML = "";
+ var style = testDoc.createElement("style");
+ style.textContent = styleText;
+ testDoc.documentElement.appendChild(style);
+ }
+});
</script>
</html>
« no previous file with comments | « PerformanceTests/CSS/StyleSheetInsert.html ('k') | PerformanceTests/Canvas/drawimage.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698