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