dom/xbl/test/file_bug591198_inner.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE HTML>
     2 <html>
     3   <head>
     4     <style>
     5       #b {
     6         -moz-binding: url("file_bug591198_xbl.xml#xbltest");
     7       }
     8       span {
     9         white-space: nowrap;
    10       }
    11     </style>
    12     <script>
    13 function sendResults() {
    14   var res = {
    15     widths: []
    16   };
    18   ps = document.getElementsByTagName('span');
    19   for (var i = 0; i < ps.length; i++) {
    20     res.widths.push(ps[i].offsetWidth);
    21   }
    23   try {
    24     res.anonChildCount =
    25       SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('b')).length;
    26   }
    27   catch (ex) {}
    29   parent.postMessage(JSON.stringify(res), "*");
    30 }
    31     </script>
    32   </head>
    33   <body onload="sendResults();">
    34     <div><span id=b>long long text here</span></div>
    35     <div><span>long long text here</span></div>
    36     <div><span>PASS</span></div>
    37   </body>
    38 </html>

mercurial