dom/tests/mochitest/chrome/test_activation.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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,
     6 %23box {
     7   background: blue;
     8 }
    10 %23box:-moz-window-inactive {
    11   background: cyan;
    12 }
    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">
    21   <script type="application/javascript" 
    22           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>      
    24 <box id="box" height="100"/>
    26 <script>
    27 SimpleTest.waitForExplicitFinish();
    29 newwindow = window.open("window_activation.xul", "_blank","chrome,width=300,height=200");
    31 function complete()
    32 {
    33   newwindow.close();
    34   SimpleTest.finish();
    35 }
    37 </script>
    40 <body xmlns="http://www.w3.org/1999/xhtml" style="height: 300px; overflow: auto;"/>
    42 </window>

mercurial