2 function createElement(tag, parent, className, id) {
3 var el = document.createElement(tag);
4 el.className = className;
7 parent.appendChild(el);
11 function createTable(width, height, colspan) {
12 var table = createElement("table", document.body, "table");
13 for (var y = 0; y < height; ++y) {
14 var tr = createElement("tr", table, "tr");
15 for (var x = 0; x < width; ++x) {
16 var td = createElement("td", tr, "td");
17 if (colspan > 0 && x==10 && y==0)
18 table.rows[y].cells[x].colSpan = colspan;
24 function createTestFunction(width, height, colspan) {
26 var table = createTable(width, height, colspan);
27 PerfTestRunner.forceLayoutOrFullFrame();
31 window.createTableTestFunction = createTestFunction;