Index: PerformanceTests/Layout/resources/large-table-with-collapsed-borders.js |
diff --git a/PerformanceTests/Layout/resources/large-table-with-collapsed-borders.js b/PerformanceTests/Layout/resources/large-table-with-collapsed-borders.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..373432d93595a242713b406fa00d2d680ac8513c |
--- /dev/null |
+++ b/PerformanceTests/Layout/resources/large-table-with-collapsed-borders.js |
@@ -0,0 +1,32 @@ |
+(function() { |
+ function createElement(tag, parent, className, id) { |
+ var el = document.createElement(tag); |
+ el.className = className; |
+ if (id) |
+ el.id = id; |
+ parent.appendChild(el); |
+ return el; |
+ } |
+ |
+ function createTable(width, height, colspan) { |
+ var table = createElement("table", document.body, "table"); |
+ for (var y = 0; y < height; ++y) { |
+ var tr = createElement("tr", table, "tr"); |
+ for (var x = 0; x < width; ++x) { |
+ var td = createElement("td", tr, "td"); |
+ if (colspan > 0 && x==10 && y==0) |
+ table.rows[y].cells[x].colSpan = colspan; |
+ } |
+ } |
+ return table; |
+ } |
+ |
+ function createTestFunction(width, height, colspan) { |
+ return function() { |
+ var table = createTable(width, height, colspan); |
+ table.clientHeight; |
+ } |
+ } |
+ |
+ window.createTableTestFunction = createTestFunction; |
+})(); |