1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/forms/test/test_bug478219.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.5 +<!-- 1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=478219 1.7 +--> 1.8 +<head> 1.9 + <title>Test for Bug 478219</title> 1.10 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.11 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.12 + <style type="text/css"> 1.13 + 1.14 + </style> 1.15 +</head> 1.16 + 1.17 +<body> 1.18 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=478219">Mozilla Bug 478219</a> 1.19 +<input style="overflow: scroll;-moz-binding:url(#xbl);" type="image"/> 1.20 +<pre id="test"> 1.21 +<script class="testbody" type="text/javascript"> 1.22 + var win = window.open('', '', 'width=100,height=100'); 1.23 + win.close(); 1.24 + is(win.closed, true, "Window should have been opened"); 1.25 + is(win.opener, window, "Opened window should have as opener this window"); 1.26 +</script> 1.27 +</pre> 1.28 + 1.29 +<bindings xmlns="http://www.mozilla.org/xbl"> 1.30 +<binding id="xbl" inheritstyle="false"> 1.31 +<content> 1.32 + 1.33 +<div xmlns="http://www.w3.org/1999/xhtml" contenteditable="true"> 1.34 +<style>style {-moz-binding:url(#xbl);</style> 1.35 +</div> 1.36 +<textarea xmlns="http://www.w3.org/1999/xhtml"></textarea> 1.37 +</content> 1.38 +</binding> 1.39 +</bindings> 1.40 +</body> 1.41 +</html>