blob: 38d2a85b3530d7c9e78a0a298cd80532df8fad95 [file] [log] [blame]
#!/usr/bin/env python3
import os
import sys
from urllib.parse import parse_qs
src = parse_qs(os.environ.get('QUERY_STRING', ''), keep_blank_values=True).get('src', [''])[0]
sys.stdout.write('Content-Type: text/html\r\n\r\n')
print('''<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner) {{
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
testRunner.waitUntilDone();
}}
</script>
</head>
<body>
<iframe src="{}"></iframe>
</body>
</html>'''.format(src))