Bug 862655 - Increase a margin number a bit to accommodate the taller title bar on Windows with DWM enabled. r=Enn
authorMasatoshi Kimura <VYV03354@nifty.ne.jp>
Mon, 24 Nov 2014 22:18:08 +0900
changeset 241545 e20b1911e1e093693625d20481968b29e5830d5a
parent 241544 bf907199961227ce892a4f3f2de9aa236928b6d5
child 241546 bc265b6fc1ad8fe13a394d22506f20bbca8bc8b6
push id4311
push userraliiev@mozilla.com
push dateMon, 12 Jan 2015 19:37:41 +0000
treeherdermozilla-beta@150c9fed433b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersEnn
bugs862655
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 862655 - Increase a margin number a bit to accommodate the taller title bar on Windows with DWM enabled. r=Enn
toolkit/content/tests/chrome/window_panel.xul
--- a/toolkit/content/tests/chrome/window_panel.xul
+++ b/toolkit/content/tests/chrome/window_panel.xul
@@ -191,17 +191,17 @@ var tests = [
       panel.openPopupAtScreen(200, 210);
     },
     result: function(testname, panel) {
       var panelrect = panel.getBoundingClientRect();
       ok(panelrect.left >= 200 - mozInnerScreenX, testname + "left");
       if (navigator.platform.indexOf("Linux") < 0) {
         ok(panelrect.top >= 210 - mozInnerScreenY + 10, testname + "top greater");
       }
-      ok(panelrect.top <= 210 - mozInnerScreenY + 30, testname + "top less");
+      ok(panelrect.top <= 210 - mozInnerScreenY + 32, testname + "top less");
       is(panelrect.width, 120, testname + "width");
       is(panelrect.height, 40, testname + "height");
 
       var screenRect = panel.getOuterScreenRect();
       if (navigator.platform.indexOf("Linux") < 0) {
         is(screenRect.left, 200, testname + " screen left");
         is(screenRect.top, 210, testname + " screen top");
       }