js/xpconnect/tests/mochitest/file_bug795275.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/xpconnect/tests/mochitest/file_bug795275.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +<style>
     1.7 +  .bound {
     1.8 +    -moz-binding: url(file_bug795275.xml#xbltest);
     1.9 +  }
    1.10 +</style>
    1.11 +<script type="application/javascript">
    1.12 +  function touchComponents() {
    1.13 +    Components;
    1.14 +  }
    1.15 +  function touchInterfaces() {
    1.16 +    Components.interfaces;
    1.17 +  }
    1.18 +
    1.19 +  function touchViaXBL() {
    1.20 +    // Make sure none of this warns.
    1.21 +    var div = document.getElementById('dummy');
    1.22 +    div.testProp;
    1.23 +    div.testMethod();
    1.24 +  }
    1.25 +
    1.26 +</script>
    1.27 +</head>
    1.28 +<body>
    1.29 +<div id="dummy" class="bound"></div>
    1.30 +</body>
    1.31 +</html>

mercurial