Bug 847891 - adjust test_windowminmaxsize for minimum window size constraints on Win8. r=bbondy
authorJim Mathies <jmathies@mozilla.com>
Fri, 08 Mar 2013 05:22:36 -0600
changeset 124221 1e5fa603b569b3c5cedef40f6d13df195d19de47
parent 124220 41efbfe49d6681067455f7645f8b337b7033857d
child 124222 6beed5c83b9c11fb68311d882eb872a5d4ea8484
push id24412
push userryanvm@gmail.com
push dateSun, 10 Mar 2013 00:01:53 +0000
treeherdermozilla-central@9e6232e86000 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbondy
bugs847891
milestone22.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 847891 - adjust test_windowminmaxsize for minimum window size constraints on Win8. r=bbondy
layout/xul/base/test/test_windowminmaxsize.xul
--- a/layout/xul/base/test/test_windowminmaxsize.xul
+++ b/layout/xul/base/test/test_windowminmaxsize.xul
@@ -27,26 +27,27 @@ var gTestId = -1;
 
 var prefix = "data:application/vnd.mozilla.xul+xml,<?xml-stylesheet href='chrome://global/skin' type='text/css'?><window " +
              "xmlns='http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul' " +
              "align='start' pack='start' style='-moz-appearance: none; margin: 0; padding: 0; border: 0; ";
 var suffix = "><resizer dir='bottomright' flex='1' width='150' height='150' style='-moz-appearance: none; margin: 0; border: 0; padding: 0;'/></window>";
 var titledpanel = "<panel noautohide='true' titlebar='normal' minwidth='120' minheight='140'/><label value='Test'/>";
 
 // width and height in the tests below specify the expected size of the window.
+// note, win8 has a minimum inner window size of around 122 pixels. Don't go below this on min-width tests.
 var tests = [
   { testname: "unconstrained",
     style: "", attrs: "",
     width: 150, height: 150 },
   { testname: "constraint min style",
     style: "min-width: 180px; min-height: 210px;", attrs: "",
     width: 180, height: 210 },
   { testname: "constraint max style",
-    style: "max-width: 120px; max-height: 140px;", attrs: "",
-    width: 120, height: 140 },
+    style: "max-width: 125px; max-height: 140px;", attrs: "",
+    width: 125, height: 140 },
   { testname: "constraint min attributes",
     style: "", attrs: "minwidth='240' minheight='220'",
     width: 240, height: 220 },
   { testname: "constraint min attributes with width and height set",
     style: "", attrs: "width='190' height='220' minwidth='215' minheight='235'",
     width: 215, height: 235 },
   { testname: "constraint max attributes",
     style: "", attrs: "maxwidth='125' maxheight='95'",