dom/xbl/test/test_bug366770.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/xbl/test/test_bug366770.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=366770
     1.8 +-->
     1.9 +<head>
    1.10 +  <title>Test for Bug 366770</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 +</head>
    1.14 +<body>
    1.15 +  <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=366770">Mozilla Bug 366770</a>
    1.16 +  <p id="display"></p>
    1.17 +  <div id="content" style="display: none"></div>
    1.18 +
    1.19 +  <!-- data: URI below corresponds to:
    1.20 +  <?xml version="1.0"?>
    1.21 +  <bindings id="xbltestBindings" xmlns="http://www.mozilla.org/xbl">
    1.22 +    <binding id="xbltest">
    1.23 +      <content>PASS</content>
    1.24 +      <implementation>
    1.25 +        <constructor>
    1.26 +          var win = XPCNativeWrapper.unwrap(window);
    1.27 +          win.document.bindingConstructorRan = true;
    1.28 +          win.ok(true, "binding URI with no fragment applied");
    1.29 +          win.SimpleTest.finish();
    1.30 +        </constructor>
    1.31 +      </implementation>
    1.32 +    </binding>
    1.33 +  </bindings>
    1.34 +  -->
    1.35 +  <span id="span" style="-moz-binding: url(data:text/xml;base64,ICA8YmluZGluZ3MgaWQ9InhibHRlc3RCaW5kaW5ncyIgeG1sbnM9Imh0dHA6Ly93d3cubW96aWxsYS5vcmcveGJsIj4KICAgIDxiaW5kaW5nIGlkPSJ4Ymx0ZXN0Ij4KICAgICAgPGNvbnRlbnQ+UEFTUzwvY29udGVudD4KICAgICAgPGltcGxlbWVudGF0aW9uPgogICAgICAgIDxjb25zdHJ1Y3Rvcj4KICAgICAgICAgIHZhciB3aW4gPSBYUENOYXRpdmVXcmFwcGVyLnVud3JhcCh3aW5kb3cpOwogICAgICAgICAgd2luLmRvY3VtZW50LmJpbmRpbmdDb25zdHJ1Y3RvclJhbiA9IHRydWU7CiAgICAgICAgICB3aW4ub2sodHJ1ZSwgImJpbmRpbmcgVVJJIHdpdGggbm8gZnJhZ21lbnQgYXBwbGllZCIpOwogICAgICAgICAgd2luLlNpbXBsZVRlc3QuZmluaXNoKCk7CiAgICAgICAgPC9jb25zdHJ1Y3Rvcj4KICAgICAgPC9pbXBsZW1lbnRhdGlvbj4KICAgIDwvYmluZGluZz4KICA8L2JpbmRpbmdzPg==);"></span>
    1.36 +
    1.37 +  <pre id="test">
    1.38 +    <script class="testbody" type="text/javascript">
    1.39 +      /** Test for Bug 366770 **/
    1.40 +      SimpleTest.waitForExplicitFinish();
    1.41 +    </script>
    1.42 +  </pre>
    1.43 +</body>
    1.44 +</html>

mercurial