2011-01-18 Dirk Pranke <dpranke@chromium.org>
[WebKit-https.git] / LayoutTests / fast / dom / Window / open-window-empty-url.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <title>Open Window with an empty URL</title>
5 </head>
6 <body>
7     <p id="description">Test that calling window.open(""); does not trigger any assertions or cause any crashes.</p>
8     <div id="results"></div>
9     <script type="text/javascript">
10         if (window.layoutTestController) {
11             layoutTestController.dumpAsText();
12             layoutTestController.setCanOpenWindows();
13         }
14         var newWindow = window.open("");
15         newWindow.close();
16         document.getElementById("results").innerText = "PASS: Calling window.open() with an empty URL did not trigger any assertions or cause any crashes.";
17     </script>
18 </body>
19 </html>
20