blob: 13af39cf674c6a3778059cc3d52d807e92b33ce6 [file] [log] [blame]
<html>
<head>
<script src="../fast/js/resources/js-test-pre.js"></script>
<script src="resources/web-intents-testing.js"></script>
<script>
var latch = true;
function buttonClicked() {
frames[0].startIntent();
}
function frameloaded() {
if (latch) {
latch = false;
startTest();
return;
}
debug("* loaded replacement page");
if (window.testRunner) {
window.testRunner.notifyDone();
}
}
function startTest() {
if (window.testRunner) {
window.testRunner.waitUntilDone();
window.testRunner.dumpChildFramesAsText();
} else {
alert('This test needs to run in DRT');
}
debug("* loaded");
simulateButtonPress();
debug("* sent mouseup");
}
</script>
</head>
<body>
<input type="button" id="button" value="Start Web Intent" onmouseup="buttonClicked()">
<iframe id="frame" onload="frameloaded()" src="resources/web-intents-reload-orig.html"></iframe>
</body>
</html>