browser/modules/test/uitour.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/modules/test/uitour.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <meta charset="utf-8" />
     1.8 +    <title>UITour test</title>
     1.9 +    <script type="application/javascript" src="uitour.js">
    1.10 +    </script>
    1.11 +    <script type="application/javascript">
    1.12 +      var callbackResult, callbackData;
    1.13 +      function makeCallback(name) {
    1.14 +        return (function(data) {
    1.15 +          callbackResult = name;
    1.16 +          callbackData = data;
    1.17 +        });
    1.18 +      }
    1.19 +
    1.20 +      // Defined in content to avoid weird issues when crossing between chrome/content.
    1.21 +      function makeButtons() {
    1.22 +        return [
    1.23 +          {label: "Button 1", callback: makeCallback("button1")},
    1.24 +          {label: "Button 2", callback: makeCallback("button2"), icon: "image.png"}
    1.25 +        ];
    1.26 +      }
    1.27 +
    1.28 +      function makeInfoOptions() {
    1.29 +        return {
    1.30 +          closeButtonCallback: makeCallback("closeButton"),
    1.31 +          targetCallback: makeCallback("target"),
    1.32 +        };
    1.33 +      }
    1.34 +    </script>
    1.35 +  </head>
    1.36 +  <body>
    1.37 +    <h1>UITour tests</h1>
    1.38 +    <p>Because Firefox is...</p>
    1.39 +    <p>Never gonna let you down</p>
    1.40 +    <p>Never gonna give you up</p>
    1.41 +  </body>
    1.42 +</html>

mercurial