dom/tests/mochitest/chrome/test_activation.xul

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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