Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / js / script-tests / document-open-getter-throw-no-crash.js
1 description("document.open() - propagate exception thrown when accessing window.open.");
2
3 var frame = document.body.appendChild(document.createElement("iframe"));
4 frame.contentWindow.__defineGetter__("open", function() { throw 'PASS (no crash)';});
5 shouldThrow("frame.contentDocument.open(1, 1, 1, 1, 1);");
6