dom/tests/mochitest/chrome/test_activation.xul

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:abdfd1301276
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
4 <?xml-stylesheet href="data:text/css,
5
6 %23box {
7 background: blue;
8 }
9
10 %23box:-moz-window-inactive {
11 background: cyan;
12 }
13
14 " type="text/css"?>
15 <!--
16 Test for the :-moz-window-inactive pseudoclass
17 -->
18 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
19 sizemode="fullscreen">
20
21 <script type="application/javascript"
22 src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
23
24 <box id="box" height="100"/>
25
26 <script>
27 SimpleTest.waitForExplicitFinish();
28
29 newwindow = window.open("window_activation.xul", "_blank","chrome,width=300,height=200");
30
31 function complete()
32 {
33 newwindow.close();
34 SimpleTest.finish();
35 }
36
37 </script>
38
39
40 <body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/>
41
42 </window>

mercurial