browser/modules/test/uitour.html
author Margaret Leibovic <margaret.leibovic@gmail.com>
Mon, 05 Jan 2015 16:29:08 -0800
changeset 235072 e9ef000ac1a6db6e97015564663189bf70baa108
parent 175282 b2110b22f290e3be6fe59ca742cd6a99193921c3
permissions -rw-r--r--
Bug 1117841 - Remove "title bar" from display settings summary. r=mfinkle

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>UITour test</title>
    <script type="application/javascript" src="uitour.js">
    </script>
    <script type="application/javascript">
      var callbackResult, callbackData;
      function makeCallback(name) {
        return (function(data) {
          callbackResult = name;
          callbackData = data;
        });
      }

      // Defined in content to avoid weird issues when crossing between chrome/content.
      function makeButtons() {
        return [
          {label: "Button 1", callback: makeCallback("button1")},
          {label: "Button 2", callback: makeCallback("button2"), icon: "image.png"}
        ];
      }

      function makeInfoOptions() {
        return {
          closeButtonCallback: makeCallback("closeButton"),
          targetCallback: makeCallback("target"),
        };
      }
    </script>
  </head>
  <body>
    <h1>UITour tests</h1>
    <p>Because Firefox is...</p>
    <p>Never gonna let you down</p>
    <p>Never gonna give you up</p>
  </body>
</html>