Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 5 | |
michael@0 | 6 | <?xml-stylesheet href="chrome://global/skin" type="text/css"?> |
michael@0 | 7 | <?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?> |
michael@0 | 8 | <!-- |
michael@0 | 9 | https://bugzilla.mozilla.org/show_bug.cgi?id=510426 |
michael@0 | 10 | --> |
michael@0 | 11 | <window title="Mozilla Bug 510426" |
michael@0 | 12 | xmlns:html="http://www.w3.org/1999/xhtml" |
michael@0 | 13 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" |
michael@0 | 14 | align="start"> |
michael@0 | 15 | <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> |
michael@0 | 16 | |
michael@0 | 17 | <body xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 18 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=510426">Mozilla Bug 510426</a> |
michael@0 | 19 | </body> |
michael@0 | 20 | |
michael@0 | 21 | <notificationbox id="nb" width="300" height="100"> |
michael@0 | 22 | <box width="100" height="100" id="overflowGenerator"/> |
michael@0 | 23 | </notificationbox> |
michael@0 | 24 | |
michael@0 | 25 | <script class="testbody" type="application/javascript"> |
michael@0 | 26 | <![CDATA[ |
michael@0 | 27 | |
michael@0 | 28 | /** Test for Bug 510426 **/ |
michael@0 | 29 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 30 | |
michael@0 | 31 | function openNotification() { |
michael@0 | 32 | var nb = document.getElementById("nb"); |
michael@0 | 33 | var n = nb.appendNotification("Notification", "", null, |
michael@0 | 34 | nb.PRIORITY_WARNING_LOW, [{ |
michael@0 | 35 | label: "Button", |
michael@0 | 36 | accesskey: "u", |
michael@0 | 37 | callback: null, |
michael@0 | 38 | popup: null |
michael@0 | 39 | }]); |
michael@0 | 40 | n.addEventListener("transitionend", function (event) { |
michael@0 | 41 | if (event.propertyName == "margin-top") { |
michael@0 | 42 | setTimeout(function () { |
michael@0 | 43 | is(n.getBoundingClientRect().height, 27, "notification bar has wrong height"); |
michael@0 | 44 | SimpleTest.finish(); |
michael@0 | 45 | }, 0); |
michael@0 | 46 | } |
michael@0 | 47 | }, false); |
michael@0 | 48 | } |
michael@0 | 49 | |
michael@0 | 50 | window.onload = openNotification; |
michael@0 | 51 | |
michael@0 | 52 | ]]> |
michael@0 | 53 | </script> |
michael@0 | 54 | </window> |