chromium/third_party/blink/web_tests/ppapi/plugins/resources/open-and-close-window-with-plugin.html

<!DOCTYPE html>
<script>
function runTest() {
    var plugin = document.getElementById('testPlugin');

    window.opener.setTimeout('setTimeout("testRunner.notifyDone()",50)', 0);
    window.close();
}

</script>

<body onload="runTest()">
<embed id="testPlugin" type="application/x-blink-deprecated-test-plugin" width="200" height="200"></embed>

</body>