| <p>Test that passing "height=0,width=0" to window.open() results in default window size.</p> |
| testRunner.waitUntilDone(); |
| testRunner.setCanOpenWindows(); |
| var result = document.getElementById("result"); |
| window.addEventListener("message", function (e) { |
| var dimensions = JSON.parse(e.data); |
| if (dimensions[0] > 100 && dimensions[1] > 100) |
| result.innerHTML = "PASS"; |
| result.innerHTML = "FAIL: " + e.data; |
| alert("FAIL: " + ex + " (" + e.data + ")"); |
| window.open("data:text/html,<script>opener.postMessage('[' + window.innerWidth + ',' + window.innerHeight + ']', '*'); window.close();<" + "/script>", "", "height=0,width=0"); |