test_bug1135764.html (1291B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1135764 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Bug 1135764</title> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 <script type="application/javascript"> 12 13 /** Test for Bug 1135764 */ 14 SimpleTest.waitForExplicitFinish(); 15 var counter = 0; 16 var startTimelineValue; 17 18 function waitATick() { 19 ++counter; 20 if (counter == 1) { 21 frames[0].requestAnimationFrame(waitATick); 22 return; 23 } 24 ok(frames[0].document.timeline.currentTime !== startTimelineValue, 25 "The timeline in an XSLT-transformed document should still advance"); 26 SimpleTest.finish(); 27 } 28 addLoadEvent(function() { 29 var ifr = document.querySelector("iframe"); 30 ifr.onload = function() { 31 startTimelineValue = frames[0].document.timeline.currentTime; 32 frames[0].requestAnimationFrame(waitATick); 33 }; 34 ifr.src = "file_bug1135764.xml"; 35 }); 36 </script> 37 </head> 38 <body> 39 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1135764">Mozilla Bug 1135764</a> 40 <p id="display"> 41 <iframe></iframe> 42 </p> 43 <div id="content" style="display: none"> 44 45 </div> 46 <pre id="test"> 47 </pre> 48 </body> 49 </html>