1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/chrome/test_activation.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 +<?xml version="1.0"?> 1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?> 1.6 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?> 1.7 +<?xml-stylesheet href="data:text/css, 1.8 + 1.9 +%23box { 1.10 + background: blue; 1.11 +} 1.12 + 1.13 +%23box:-moz-window-inactive { 1.14 + background: cyan; 1.15 +} 1.16 + 1.17 +" type="text/css"?> 1.18 +<!-- 1.19 + Test for the :-moz-window-inactive pseudoclass 1.20 + --> 1.21 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.22 + sizemode="fullscreen"> 1.23 + 1.24 + <script type="application/javascript" 1.25 + src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 1.26 + 1.27 +<box id="box" height="100"/> 1.28 + 1.29 +<script> 1.30 +SimpleTest.waitForExplicitFinish(); 1.31 + 1.32 +newwindow = window.open("window_activation.xul", "_blank","chrome,width=300,height=200"); 1.33 + 1.34 +function complete() 1.35 +{ 1.36 + newwindow.close(); 1.37 + SimpleTest.finish(); 1.38 +} 1.39 + 1.40 +</script> 1.41 + 1.42 + 1.43 +<body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/> 1.44 + 1.45 +</window>