bug503926.xul 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/css" href="chrome://global/skin"?>
  3. <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
  4. <!--
  5. https://bugzilla.mozilla.org/show_bug.cgi?id=503926
  6. -->
  7. <window title="Mozilla Bug 503926"
  8. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  9. <!-- test results are displayed in the html:body -->
  10. <body xmlns="http://www.w3.org/1999/xhtml">
  11. <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=503926"
  12. target="_blank">Mozilla Bug 503926</a>
  13. </body>
  14. <!-- test code goes here -->
  15. <script type="application/javascript">
  16. <![CDATA[
  17. var gWindowUtils = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
  18. getInterface(Components.interfaces.nsIDOMWindowUtils);
  19. var passed = false;
  20. var obj = { QueryInterface: function() { passed = true; } }
  21. gWindowUtils.xpconnectArgument(obj);
  22. var isDialog = location.hash != '#iframe';
  23. var outer = XPCNativeWrapper.unwrap(isDialog ? opener : parent);
  24. outer.ok(passed, "chrome/chrome test passed: " + (isDialog ? "dialog" : "iframe"));
  25. if (isDialog)
  26. close();
  27. ]]>
  28. </script>
  29. </window>