| <span id="test">This text should be green when hovered.</span> |
| <script src="../../resources/js-test-pre.js"></script> |
| description("Hover should work for :display block elements") |
| var test = document.getElementById('test'); |
| var container = document.getElementById('container'); |
| eventSender.mouseMoveTo(50, container.offsetTop + 25) |
| shouldBeEqualToString("getComputedStyle(test, null).color", 'rgb(0, 255, 0)') |
| container.parentNode.removeChild(container); // clean up after ourselves. |
| successfullyParsed = true; |
| <script src="../../resources/js-test-post.js"></script> |