1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/test_bug970964.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=970964 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 970964</title> 1.11 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.13 + <script type="text/javascript;version=1.7"> 1.14 + function setRemoteFrame() { 1.15 + var iframe = document.getElementById("testFrame"); 1.16 + iframe.src = "bug970964_inner.html"; 1.17 + 1.18 + function messageListener(event) { 1.19 + eval(event.data); 1.20 + } 1.21 + 1.22 + window.addEventListener("message", messageListener, false); 1.23 + } 1.24 + 1.25 + function runTest() { 1.26 + SimpleTest.waitForExplicitFinish(); 1.27 + 1.28 + SpecialPowers.pushPrefEnv({ 1.29 + "set": [ 1.30 + ["dom.w3c_pointer_events.enabled", true] 1.31 + ] 1.32 + }, setRemoteFrame); 1.33 + } 1.34 + </script> 1.35 +</head> 1.36 +<body onload="runTest();"> 1.37 + <iframe id="testFrame" height="500" width="500"></iframe> 1.38 +</body> 1.39 +