1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/test/reftest/bug798068-ref.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +<?xml version = '1.0' encoding = 'utf-8'?> 1.5 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.6 + <head> 1.7 + <script> 1.8 + function doTest() { 1.9 + var Ci = Components.interfaces; 1.10 + var defaultZoom = {}, allowZoom = {}, minZoom = {}, maxZoom ={}, width = {}, height = {}, autoSize = {}; 1.11 + var windowUtils = window.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils); 1.12 + windowUtils.getViewportInfo(1, 1, defaultZoom, allowZoom, minZoom, maxZoom, width, height, autoSize); 1.13 + document.getElementById("minZoom").innerHTML = minZoom.value.toPrecision(10); 1.14 + document.getElementById("maxZoom").innerHTML = maxZoom.value.toPrecision(10); 1.15 + } 1.16 + </script> 1.17 + </head> 1.18 + <body onload="doTest();"> 1.19 + MinZoom: <span id="minZoom"></span><br /> 1.20 + MaxZoom: <span id="maxZoom"></span> 1.21 + </body> 1.22 +</html>