dom/xbl/test/test_bug481558.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/xbl/test/test_bug481558.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=481558
     1.8 +-->
     1.9 +<head>
    1.10 +  <title>Test for Bug 481558</title>
    1.11 +  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.12 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
    1.13 +  <link rel="stylesheet" type="text/css"
    1.14 +        href="file_bug481558css.sjs?id=id1">
    1.15 +  <link rel="stylesheet" type="text/css"
    1.16 +        href="file_bug481558css.sjs?id=id2&server=example.com">
    1.17 +  <link rel="stylesheet" type="text/css" href="http://example.com/tests/dom/xbl/test/file_bug481558css.sjs?id=id3">
    1.18 +  <link rel="stylesheet" type="text/css" href="http://example.com/tests/dom/xbl/test/file_bug481558css.sjs?id=id4&server=localhost:8888">
    1.19 +</head>
    1.20 +<body onload="runTest();">
    1.21 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=481558">Mozilla Bug 481558</a>
    1.22 +<p id="id1"></p>
    1.23 +<p id="id2"></p>
    1.24 +<p id="id3"></p>
    1.25 +<p id="id4"></p>
    1.26 +<pre id="test">
    1.27 +<script class="testbody" type="text/javascript">
    1.28 +
    1.29 +SimpleTest.waitForExplicitFinish();
    1.30 +function runTest() {
    1.31 +  is ($('id1').xblBoundProperty, 1, "XBL should be attached");
    1.32 +  is ($('id2').xblBoundProperty, undefined, "XBL shouldn't be attached");
    1.33 +  is ($('id3').xblBoundProperty, undefined, "XBL shouldn't be attached");
    1.34 +  is ($('id4').xblBoundProperty, undefined, "XBL shouldn't be attached");
    1.35 +  SimpleTest.finish();
    1.36 +}
    1.37 +
    1.38 +</script>
    1.39 +</pre>
    1.40 +</body>
    1.41 +</html>

mercurial