1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/generic/test/test_bug503813.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,43 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=503813 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 503813</title> 1.11 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.14 + <style> 1.15 + #a:after { content:"anonymous text"; display:block; height:10px; } 1.16 + #a:hover:after { content:"hover content"; display:block; height:20px; } 1.17 + #b:after { content:"anonymous text"; display:block; height:10px; } 1.18 + #b:hover:after { content:url(file_Dolske.png); display:block; height:20px; } 1.19 + </style> 1.20 +</head> 1.21 +<body> 1.22 +<div id="content" style="width:300px;"> 1.23 + <div id="a" style="margin:10px;"></div> 1.24 + <div id="b" style="margin:10px;"></div> 1.25 +</div> 1.26 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=503813">Mozilla Bug 503813</a> 1.27 +<pre id="test"> 1.28 +<script class="testbody" type="text/javascript"> 1.29 +/** Test for Bug 503813 **/ 1.30 +function test() 1.31 +{ 1.32 + synthesizeMouse(document.getElementById("a"), 5, 5, { type: "mousemove" }); 1.33 + is(document.getElementById("a").getBoundingClientRect().height, 20, 1.34 + "Expected hover style"); 1.35 + synthesizeMouse(document.getElementById("b"), 5, 5, { type: "mousemove" }); 1.36 + is(document.getElementById("b").getBoundingClientRect().height, 20, 1.37 + "Expected hover style"); 1.38 + SimpleTest.finish(); 1.39 +} 1.40 +// Run 'test' when we've exited paint suppression and done layout 1.41 +window.onload = function() { setTimeout(test, 0); }; 1.42 +SimpleTest.waitForExplicitFinish(); 1.43 +</script> 1.44 +</pre> 1.45 +</body> 1.46 +</html>