Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / PerformanceTests / CSS / StyleSheetInsert-bootstrap.html
index 692ac64..1b0987c 100644 (file)
@@ -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>