layout/reftests/mathml/menclose-4.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 <!doctype html>
michael@0 2 <html class="reftest-wait">
michael@0 3 <head>
michael@0 4 <title>menclose inner and outer circle</title>
michael@0 5 <meta charset="utf-8"/>
michael@0 6 <script type="text/javascript">
michael@0 7 function doTest()
michael@0 8 {
michael@0 9 var box1 = document.getElementById("outer").getBoundingClientRect();
michael@0 10 var box2 = document.getElementById("inner").getBoundingClientRect();
michael@0 11 var epsilon = 0.1;
michael@0 12 if ((box1.width >= ((Math.sqrt(2) - epsilon)*box2.width)) && (box1.height >= ((Math.sqrt(2) - epsilon)*box2.height))) {
michael@0 13 document.body.innerHTML = "Pass";
michael@0 14 }
michael@0 15 document.documentElement.removeAttribute("class");
michael@0 16 }
michael@0 17 window.addEventListener("MozReftestInvalidate",doTest, false);
michael@0 18 </script>
michael@0 19 </head>
michael@0 20 <body>
michael@0 21 <div style="position: absolute; left: 20px; top: 20px;">
michael@0 22 <math>
michael@0 23 <menclose id="outer" notation="circle">
michael@0 24 <mspace id="inner" width="200px" height="100px"></mspace>
michael@0 25 </menclose>
michael@0 26 </math>
michael@0 27 </div>
michael@0 28 </body>
michael@0 29 </html>

mercurial