dom/browser-element/mochitest/file_browserElement_OpenWindowRejected.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/browser-element/mochitest/file_browserElement_OpenWindowRejected.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +<html>
     1.5 +<body>
     1.6 +
     1.7 +<script>
     1.8 +var w = window.open('does_not_exist.html');
     1.9 +if (!w) {
    1.10 +  alert("success:w is null");
    1.11 +}
    1.12 +else {
    1.13 +  alert("failure:w is not null -- " + w);
    1.14 +}
    1.15 +alert("finish");
    1.16 +</script>
    1.17 +
    1.18 +</body>
    1.19 +</html>

mercurial