1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/whatwg/postMessage_throw_helper.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 + <title>postMessage throwing page</title> 1.8 + <script type="application/javascript"> 1.9 + function receiveMessage(evt) 1.10 + { 1.11 + throw 17; 1.12 + } 1.13 + window.addEventListener("message", receiveMessage, false); 1.14 + 1.15 + function setup() 1.16 + { 1.17 + var target = document.getElementById("location"); 1.18 + target.textContent = location.hostname + ":" + (location.port || 80); 1.19 + } 1.20 + 1.21 + window.addEventListener("load", setup, false); 1.22 + </script> 1.23 +</head> 1.24 +<body> 1.25 +<h1 id="location">No location!</h1> 1.26 +</body> 1.27 +</html>