|
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 }; |
|
17 |
|
18 ps = document.getElementsByTagName('span'); |
|
19 for (var i = 0; i < ps.length; i++) { |
|
20 res.widths.push(ps[i].offsetWidth); |
|
21 } |
|
22 |
|
23 try { |
|
24 res.anonChildCount = |
|
25 SpecialPowers.wrap(document).getAnonymousNodes(document.getElementById('b')).length; |
|
26 } |
|
27 catch (ex) {} |
|
28 |
|
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> |