2013-05-29 14:50:59 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>UITour test</title>
|
|
|
|
<script type="application/javascript" src="uitour.js">
|
|
|
|
</script>
|
2014-01-05 15:27:25 -08:00
|
|
|
<script type="application/javascript">
|
2014-03-25 01:25:53 -07:00
|
|
|
var callbackResult, callbackData;
|
2014-01-05 15:27:25 -08:00
|
|
|
function makeCallback(name) {
|
2014-03-25 01:25:53 -07:00
|
|
|
return (function(data) {
|
2014-01-05 15:27:25 -08:00
|
|
|
callbackResult = name;
|
2014-03-25 01:25:53 -07:00
|
|
|
callbackData = data;
|
2014-01-05 15:27:25 -08:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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"}
|
|
|
|
];
|
|
|
|
}
|
2014-03-07 10:00:18 -08:00
|
|
|
|
|
|
|
function makeInfoOptions() {
|
|
|
|
return {
|
2014-03-25 01:25:53 -07:00
|
|
|
closeButtonCallback: makeCallback("closeButton"),
|
|
|
|
targetCallback: makeCallback("target"),
|
2014-03-07 10:00:18 -08:00
|
|
|
};
|
|
|
|
}
|
2014-01-05 15:27:25 -08:00
|
|
|
</script>
|
2013-05-29 14:50:59 -07:00
|
|
|
</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>
|