Commit 1c6421cb authored by alice.liu@apple.com's avatar alice.liu@apple.com

2008-05-01 Alice Liu <alice.liu@apple.com>

        Rubber-stamped by Sam Weinig.

        fast/events/tabindex-focus-blur-all.html was timing out on some machines
        Make this test faster by not doing += on innerHTML. 

        * fast/events/resources/tabindex-focus-blur-all.js:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32769 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0ed1e7c7
2008-05-01 Alice Liu <alice.liu@apple.com>
Rubber-stamped by Sam Weinig.
fast/events/tabindex-focus-blur-all.html was timing out on some machines
Make this test faster by not doing += on innerHTML.
* fast/events/resources/tabindex-focus-blur-all.js:
2008-05-01 Sam Weinig <sam@webkit.org>
Update results with -webkit-box-reflect values.
if (window.layoutTestController)
if (window.layoutTestController) {
layoutTestController.waitUntilDone();
layoutTestController.dumpAsText();
}
var consoleOutput = null;
var stopTest = false;
......@@ -23,7 +25,8 @@ function printToConsole(str)
if (!consoleOutput) {
consoleOutput = window.frames[2].document.getElementById("theConsole");
}
consoleOutput.innerHTML += "<br>" + str;
consoleOutput.appendChild(window.frames[2].document.createTextNode(str));
consoleOutput.appendChild(window.frames[2].document.createElement("br"));
}
function doFocus(elem)
......@@ -57,10 +60,8 @@ function test()
document.write(resultSummary);
document.close();
if (window.layoutTestController) {
layoutTestController.dumpAsText();
if (window.layoutTestController)
layoutTestController.notifyDone();
}
}
function focusEachChild(elem) {
......@@ -111,15 +112,15 @@ function testProgrammaticFocus(elem)
elem.focus();
if (elemThatShouldFocus == focusedElem || (!elemThatShouldFocus && OKtoFocusOtherElement))
printToConsole("&lt;"+elem.tagName+"&gt; "+elem.id+" <span style='color:green'>passed</span> focus test");
printToConsole("<"+elem.tagName+"> "+elem.id+" PASSED focus test");
else {
failedTestCount++;
printToConsole(elem.id+" <span style='color:red'>failed</span> - was " + (focusedElem ? "" : " not ") + " focused but focus " + (elemThatShouldFocus ? " was " : " wasn\'t") + " expected");
printToConsole(elem.id+" FAILED - was " + (focusedElem ? "" : " not ") + " focused but focus " + (elemThatShouldFocus ? " was " : " wasn\'t") + " expected");
if (elemThatShouldFocus && focusedElem)
printToConsole("elemThatShouldFocus is &lt;"+elemThatShouldFocus.tagName+"&gt; "+elemThatShouldFocus.id+", focusedElem is &lt;"+focusedElem.tagName+"&gt; "+focusedElem.id);
printToConsole("elemThatShouldFocus is <"+elemThatShouldFocus.tagName+"> "+elemThatShouldFocus.id+", focusedElem is <"+focusedElem.tagName+"> "+focusedElem.id);
if (!elemThatShouldFocus)
printToConsole("elemThatShouldFocus is null, focusedElem is &lt;"+focusedElem.tagName+"&gt; "+focusedElem.id);
printToConsole("elemThatShouldFocus is null, focusedElem is <"+focusedElem.tagName+"> "+focusedElem.id);
if (!focusedElem)
printToConsole("elemThatShouldFocus is &lt;"+elemThatShouldFocus.tagName+"&gt; "+elemThatShouldFocus.id+", focusedElem is null");
printToConsole("elemThatShouldFocus is <"+elemThatShouldFocus.tagName+"> "+elemThatShouldFocus.id+", focusedElem is null");
}
}
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