Commit aabd7ed1 authored by jberlin@webkit.org's avatar jberlin@webkit.org
Browse files

Add a test that calling window.open with an empty URL does not trigger an assertion or

cause a crash.
https://bugs.webkit.org/show_bug.cgi?id=52654

Reviewed by Adam Roben.

* fast/dom/Window/open-window-empty-url-expected.txt: Added.
* fast/dom/Window/open-window-empty-url.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76084 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e90fa1a9
2011-01-18 Jessie Berlin <jberlin@apple.com>
Reviewed by Adam Roben.
Add a test that calling window.open with an empty URL does not trigger an assertion or
cause a crash.
https://bugs.webkit.org/show_bug.cgi?id=52654
* fast/dom/Window/open-window-empty-url-expected.txt: Added.
* fast/dom/Window/open-window-empty-url.html: Added.
2011-01-18 Robert Hogan <robert@webkit.org>
 
Reviewed by Simon Hausmann.
......
Test that calling window.open(""); does not trigger any assertions or cause any crashes.
PASS: Calling window.open() with an empty URL did not trigger any assertions or cause any crashes.
<!DOCTYPE html>
<html>
<head>
<title>Open Window with an empty URL</title>
</head>
<body>
<p id="description">Test that calling window.open(""); does not trigger any assertions or cause any crashes.</p>
<div id="results"></div>
<script type="text/javascript">
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.setCanOpenWindows();
}
var newWindow = window.open("");
newWindow.close();
document.getElementById("results").innerText = "PASS: Calling window.open() with an empty URL did not trigger any assertions or cause any crashes.";
</script>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment