9 if (window
.testRunner
) {
10 testRunner
.waitUntilDone();
11 testRunner
.dumpAsText();
14 var console
= document
.getElementById('console');
15 console
.innerText
= msg
;
17 var testedHoverState
= false;
18 function testHoverState() {
21 testedHoverState
= true;
22 var tableRow
= document
.getElementById('table-row');
23 var calculatedStyle
= window
.getComputedStyle(tableRow
);
25 if (calculatedStyle
.getPropertyValue('background-color') == "rgb(0, 0, 255)")
26 log("PASSED: The hover effect works!");
28 log("FAILED: The hover effect did not correctly propagate down the layer chain.");
29 if (window
.testRunner
)
30 testRunner
.notifyDone();
34 if (!window
.testRunner
)
36 document
.body
.offsetTop
; // Force layout.
37 var targetElem
= document
.getElementById('table-row');
38 eventSender
.mouseMoveTo(50, 17);
39 window
.setTimeout(testHoverState
, 100);
44 <body onload=
"runTest()">
45 <div style=
"overflow:hidden">
46 <div id=
"table-row" style=
"overflow:hidden; display:table-row">To test this manually, first make sure you can see this text at all, and then hover over it and make sure the background turns blue.
</div>
48 <div id=
"console"></div>