| testRunner.waitUntilDone(); |
| var console = document.getElementById('console'); |
| var testedHoverState = false; |
| function testHoverState() { |
| var tableRow = document.getElementById('table-row'); |
| var calculatedStyle = window.getComputedStyle(tableRow); |
| if (calculatedStyle.getPropertyValue('background-color') == "rgb(0, 0, 255)") |
| log("PASSED: The hover effect works!"); |
| log("FAILED: The hover effect did not correctly propagate down the layer chain."); |
| document.body.offsetTop; // Force layout. |
| var targetElem = document.getElementById('table-row'); |
| eventSender.mouseMoveTo(50, 17); |
| window.setTimeout(testHoverState, 100); |
| <body onload="runTest()"> |
| <div style="overflow:hidden"> |
| <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> |