chromium/third_party/blink/web_tests/http/tests/security/popup-allowed-by-sandbox-when-allowed.html

<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
    testRunner.setPopupBlockingEnabled(false);
}
</script>
<p>To run this test outside of DumpRenderTree, please disable your popup blocker!</p>
<iframe sandbox="allow-scripts allow-popups allow-same-origin"
  src="data:text/html,
       <script>
       var win = window.open('about:blank', '_blank');
       if (win) {
         console.log('PASS');
         win.document.write(
           '<script>if (window.testRunner) testRunner.notifyDone();<\/script>');
       } else {
         console.log('FAIL');
         if (window.testRunner) testRunner.notifyDone();
       }
       </script>"
  ></iframe>