open-url-undefined.html 462 B

1234567891011
  1. <body>
  2. <p>
  3. Tests that <code>window.open()</code> does not interpret the missing URL
  4. argument as the literal string &ldquo;undefined&rdquo;.
  5. </p>
  6. <p>
  7. Click the Test button. A new window should open. To pass the test, the address
  8. bar of the new window should be empty. If it contains a URL (ending with &ldquo;undefined&rdquo;), WebKit failed the test.
  9. </p>
  10. <button onclick="window.open()">Test</button>
  11. </body>