Index: PerformanceTests/Layout/AddWhitespaceToAnonymousTable.html |
diff --git a/PerformanceTests/Layout/AddWhitespaceToAnonymousTable.html b/PerformanceTests/Layout/AddWhitespaceToAnonymousTable.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ee962c8f74c04c7596f57de80d6990b2fe80de1b |
--- /dev/null |
+++ b/PerformanceTests/Layout/AddWhitespaceToAnonymousTable.html |
@@ -0,0 +1,29 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
+ <title>Adding whitespace to table with anonymous descendant performance test</title> |
+ <script src="../resources/runner.js"></script> |
+</head> |
+<body> |
+ <pre id="log"></pre> |
+ <div style="display: table;" id="test"> |
+ <div style="display: inline-block;"></div> |
+ <div> |
+ <script> |
+ var target = document.getElementById("test"); |
+ function test() { |
+ for (var i = 0; i < 100; i++) { |
+ target.innerHTML += ' <div style="display: inline-block;"></div> '; |
+ PerfTestRunner.forceLayoutOrFullFrame(); |
+ } |
+ target.innerHTML = '<div style="display: inline-block;"></div>'; |
esprehn
2015/05/04 21:22:40
ditto, this doesn't benchmark anything related to
|
+ } |
+ |
+ PerfTestRunner.measureRunsPerSecond({ |
+ description: "Measures performance of layout adding whitespace to a table with anonymous descendants.", |
+ run: test |
+ }); |
+ </script> |
+</body> |
+</html> |