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

Unified Diff: LayoutTests/fast/table/table-anonymous-cell-bug.html

Issue 8416045: Merge 98411 - Made Table tests for Bug 70678 Platform Independent (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 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 | « no previous file | LayoutTests/fast/table/table-anonymous-cell-bug-expected.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/table/table-anonymous-cell-bug.html
===================================================================
--- LayoutTests/fast/table/table-anonymous-cell-bug.html (revision 98741)
+++ LayoutTests/fast/table/table-anonymous-cell-bug.html (working copy)
@@ -6,6 +6,7 @@
div.section { display: table-row-group; }
div.cell { display: table-cell; width: 50px; height: 50px; background-color: blue; }
div.row { display: table-row; }
+ div.test { background-color: green; width: 50px; height: 50px; }
</style>
<div class="table" id="table-1">
@@ -18,23 +19,23 @@
</div>
<script>
- function createSpan()
+ function createDiv()
{
- var spanElement = document.createElement("span");
- spanElement.appendChild(document.createTextNode("Some text."));
- return spanElement;
+ var divElement = document.createElement("div");
+ divElement.setAttribute("class", "test");
+ return divElement;
}
- function insertSpan(tableID, beforeID)
+ function insertDiv(tableID, beforeID)
{
var tableRow = document.getElementById(tableID);
var before = document.getElementById(beforeID);
- tableRow.insertBefore(createSpan(), before);
+ tableRow.insertBefore(createDiv(), before);
}
document.body.offsetTop;
- insertSpan("row-1", "cell-2");
+ insertDiv("row-1", "cell-2");
</script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/table/table-anonymous-cell-bug-expected.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698