1
0
Fork 0
firefox/dom/base/test/iframe_bug962251.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

25 lines
No EOL
668 B
HTML

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<input id="textinput" type="text"></input>
<input id="textinput1" type="text"></input>
</body>
<script>
var SimpleTest = parent.SimpleTest;
var ok = SimpleTest.ok;
var info = SimpleTest.info;
var is = SimpleTest.is;
var finish = SimpleTest.finish.bind(SimpleTest);
var input = document.getElementById("textinput");
input.addEventListener("focus", function(aEvent) {
is(aEvent.target.id, "textinput", "Input should be focused.");
ok(aEvent.relatedTarget === null, "The relatedTarget should be null.");
parent.postMessage("runNextTest", "*");
}, {once: true});
input.focus();
</script>
</html>