Torne (Richard Coles) | 5c87bf8 | 2012-11-14 11:46:17 +0000 | [diff] [blame] | 1 | <script> |
2 | function crash() { | ||||
3 | var w = window.open("data:text/html,Loading a data URL is asynchronous, so this text shouldn't appear. But it's most important to check that there is no crash after dismissing the print sheet."); | ||||
4 | w.document.write("SUCCESS"); | ||||
5 | w.print(); | ||||
6 | w.close(); | ||||
7 | } | ||||
8 | </script> | ||||
9 | <button onclick="crash()">Crash</button> |