1
0
Fork 0
firefox/testing/web-platform/tests/resources/test/harness.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

26 lines
522 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<script>
function runTest(url, id, done) {
var child;
function onMessage(event) {
if (!event.data || event.data.type !== 'complete') {
return;
}
window.removeEventListener('message', onMessage);
child.close();
done(event.data);
}
window.addEventListener('message', onMessage);
window.child = child = window.open(url, id);
}
</script>
</body>
</html>