Commit d61d7c0b authored by abarth@webkit.org's avatar abarth@webkit.org

2010-08-13 Adam Barth <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Make it easier to run LayoutTests in Firefox
        https://bugs.webkit.org/show_bug.cgi?id=44002

        Firefox doesn't seem to have innerText.  Instead, let's just use the
        normal DOM operations.

        * fast/parser/resources/p-in-scope.js:
        * fast/table/incomplete-table-in-fragment-2.html:
        * fast/table/incomplete-table-in-fragment-hang.html:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c6d63fa0
2010-08-13 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
Make it easier to run LayoutTests in Firefox
https://bugs.webkit.org/show_bug.cgi?id=44002
Firefox doesn't seem to have innerText. Instead, let's just use the
normal DOM operations.
* fast/parser/resources/p-in-scope.js:
* fast/table/incomplete-table-in-fragment-2.html:
* fast/table/incomplete-table-in-fragment-hang.html:
2010-08-13 Adam Barth <abarth@webkit.org>
Update test expectations to account for the HTML5 entity parser. There
......@@ -126,12 +126,12 @@ for (var i = 0; i < leafTags.length; ++i) {
var asChild = testAsChild(tag);
var cell = row.appendChild(document.createElement("td"));
cell.className = asChild;
cell.innerText = asChild == "allowed" ? "+" : asChild == "closed" ? "-" : "?";
cell.appendChild(document.createTextNode(asChild == "allowed" ? "+" : asChild == "closed" ? "-" : "?"));
for (var j = 0; j < intermediateTags.length; ++j) {
var intermediateTag = intermediateTags[j];
var asGrandchild = testAsGrandchild(tag, intermediateTag);
cell = row.appendChild(document.createElement("td"));
cell.className = asGrandchild;
cell.innerText = asGrandchild == "allowed" ? "+" : asGrandchild == "closed" ? "-" : "?";
cell.appendChild(document.createTextNode(asGrandchild == "allowed" ? "+" : asGrandchild == "closed" ? "-" : "?"));
}
}
......@@ -15,7 +15,7 @@ var console = document.getElementById('console');
function log(t)
{
var line = document.createElement('div');
line.innerText = t;
line.appendChild(document.createTextNode(t));
console.appendChild(line);
}
......
......@@ -15,7 +15,7 @@ var console = document.getElementById('console');
function log(t)
{
var line = document.createElement('div');
line.innerText = t;
line.appendChild(document.createTextNode(t));
console.appendChild(line);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment