<?xml version="1.0"?>
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
<?xul-overlay href="chrome://verbosio/content/menuTestOverlay1.xul" ?>
<?xml-stylesheet type="text/css" href="chrome://global/skin/"?>

<window
  id="main-window"
  title="Test window"
  width="200"
  height="200"
  screenX="0"
  screenY="0"

  xmlns:html="http://www.w3.org/1999/xhtml"
  xmlns:xbl="http://www.mozilla.org/xbl"
  xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <toolbox id="mainToolbox">
    <menubar id="commonOperations">
      <menu id="test" label="Three items under this menu" accesskey="T">
        <menupopup id="testPopup" onpopupshowing="dump(event.target.childNodes.length + '\n');">
          <menuitem label="Item natively inline"/>
        </menupopup>
      </menu>
    </menubar>
  </toolbox>

  <script type="application/javascript"><![CDATA[
const ssl = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader);
window.addEventListener("load", {
  hasExecuted: false,
  handleEvent: function loadOverlay() {
    if (!this.hasExecuted)
    {
      document.loadOverlay("chrome://verbosio/content/menuTestOverlay2.xul", null);
      this.hasExecuted = true;
    }
  }
}, true);
  ]]></script>
</window>
