1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/xbl/test/file_bug591198_inner.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 + <head> 1.7 + <style> 1.8 + #b { 1.9 + -moz-binding: url("file_bug591198_xbl.xml#xbltest"); 1.10 + } 1.11 + span { 1.12 + white-space: nowrap; 1.13 + } 1.14 + </style> 1.15 + <script> 1.16 +function sendResults() { 1.17 + var res = { 1.18 + widths: [] 1.19 + }; 1.20 + 1.21 + ps = document.getElementsByTagName('span'); 1.22 + for (var i = 0; i < ps.length; i++) { 1.23 + res.widths.push(ps[i].offsetWidth); 1.24 + } 1.25 + 1.26 + try { 1.27 + res.anonChildCount = 1.28 + SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('b')).length; 1.29 + } 1.30 + catch (ex) {} 1.31 + 1.32 + parent.postMessage(JSON.stringify(res), "*"); 1.33 +} 1.34 + </script> 1.35 + </head> 1.36 + <body onload="sendResults();"> 1.37 + <div><span id=b>long long text here</span></div> 1.38 + <div><span>long long text here</span></div> 1.39 + <div><span>PASS</span></div> 1.40 + </body> 1.41 +</html>