1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/mathml/crashtests/400157.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:mathml="http://www.w3.org/1998/Math/MathML" class="reftest-wait"> 1.5 +<mathml:mfenced/> 1.6 + 1.7 + 1.8 +<script><![CDATA[ 1.9 +var docviewer; 1.10 +function do_onload() { 1.11 + var navigator1 = SpecialPowers.wrap(parent).QueryInterface(SpecialPowers.Ci.nsIInterfaceRequestor).getInterface(SpecialPowers.Ci.nsIWebNavigation); 1.12 + var docShell = navigator1.QueryInterface(SpecialPowers.Ci.nsIDocShell); 1.13 + docviewer = docShell.contentViewer.QueryInterface(SpecialPowers.Ci.nsIMarkupDocumentViewer); 1.14 + 1.15 + setTimeout(function() { 1.16 + clearTimeout(timer); 1.17 + docviewer.textZoom = 1; 1.18 + document.documentElement.removeAttribute("class"); 1.19 + }, 500); 1.20 + setTimeout(doe,50, 0.2); 1.21 +} 1.22 +do_onload(); 1.23 + 1.24 +var timer; 1.25 +function doe(i) { 1.26 + docviewer.textZoom += i; 1.27 + 1.28 + if (docviewer.textZoom >=4) 1.29 + i = -0.2; 1.30 + 1.31 + if (docviewer.textZoom <=0) 1.32 + i = 0.2; 1.33 + window.status = docviewer.textZoom; 1.34 + timer = setTimeout(doe, 50, i); 1.35 +} 1.36 +]]></script> 1.37 +</html> 1.38 \ No newline at end of file