Closed Bug 862655 Opened 7 years ago Closed 5 years ago

VS2012 and Windows 8 SDK fails toolkit/content/tests/chrome/test_panel.xul with "noautohide panel with titlebar top less"


(Core :: Widget: Win32, defect)

Windows 8
Not set





(Reporter: bkelly, Assigned: emk)




(1 file)

I am currently running into the following error on a windows 8 vmware fusion instance:

 0:14.42 39 ERROR TEST-UNEXPECTED-FAIL | chrome://mochitests/content/chrome/toolkit/content/tests/chrome/test_panel.xul | noautohide panel with titlebar top less

The test in question looks like this:

  var panelrect = panel.getBoundingClientRect();
  ok( <= 210 - mozInnerScreenY + 30, testname + "top less");

Adding some debug shows that: === 10
  210 - mozInnerScreenY + 30 === 9

My working theory is this shows up for me, but not the try server because I build with the win8 SDK included in visual studio express 2012.  Apparently the try servers use vs2010 and win7 SDK.
CC'ing Tim who did some work for the titlebar being too big when using the win8 SDK.
I don't have any immediate ideas after looking over this test.

I believe that we were, at one point, able to build and run all tests using VS2012 and the Win8 SDK, so a good first step might be to find a regression range for this issue.
I can confirm that installing VS2010 and Win7 SDK resolves this problem.  Unfortunately I'm working with a fairly small/slow VM, so I can't easily support both environments and switching between revisions.  In a couple weeks I expect to have a better setup, so I will revisit then.
Summary: toolkit/content/tests/chrome/test_panel.xul fails on win8 with "noautohide panel with titlebar top less" → VS2012 and Windows 8 SDK fails toolkit/content/tests/chrome/test_panel.xul with "noautohide panel with titlebar top less"
Blocks: 1094013
See bug 1094013 comment #9 about a minimized testcase.
(In reply to Masatoshi Kimura [:emk] from bug 1094013 comment #9)
> | <= 210 - mozInnerScreenY + 30| still holds for me, but the
> popup is actually shifted. So this is a real bug.

Actually this was by design!
If DWM is enabled, the border width of non-resizable windows is extended. To keep compatibility with older apps, DWM will tell a lie to apps whose subsystem version is lower than 6.0 [1]. So the test running on 32-bit Firefox did not notice the metric change.
We should increase the number a bit to accommodate the taller title bar.

Comment on attachment 8519398 [details] [diff] [review]
Increase a margin number a bit to accommodate the taller title bar on Windows with DWM enabled

Enn has no activity for the last two weeks. (On vacation?)
Roc, could you take a look?
Attachment #8519398 - Flags: review?(roc)
Attachment #8519398 - Flags: review?(enndeakin) → review+
Assignee: nobody → VYV03354
Flags: in-testsuite-
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.