zhangqd / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

CEF3: Windows: Unit test OSRTest fails with 107% font scale setting #949

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reproduced on CEF3 R1234 (1453 branch):

[ RUN      ] OSRTest.PopupPaint
tests\unittests\os_rendering_unittest.cc(388): error: Value of: width
  Actual: 82
Expected: kExpandedSelectRect.width
Which is: 81
tests\unittests\os_rendering_unittest.cc(700): error: Value of: CefRect(0, 0, 
kExpandedSelectRect.width, kExpandedSelectRect.height)
  Actual: 24-byte object <0C-26 08-01 00-00 00-00 00-00 00-00 51-00 00-00 42-01 00-00 00-00 00-00>
Expected: dirtyRects[0]
Which is: 24-byte object <0C-26 08-01 00-00 00-00 00-00 00-00 52-00 00-00 42-01 
00-00 00-00 00-00>
tests\unittests\os_rendering_unittest.cc(703): error: Value of: width
  Actual: 82
Expected: kExpandedSelectRect.width
Which is: 81
[  FAILED  ] OSRTest.PopupPaint (106 ms)
[ RUN      ] OSRTest.PopupShow
[       OK ] OSRTest.PopupShow (100 ms)
[ RUN      ] OSRTest.PopupSize
tests\unittests\os_rendering_unittest.cc(369): error: Value of: rect
  Actual: 24-byte object <0C-26 08-01 D3-01 00-00 2A-00 00-00 52-00 00-00 42-01 00-00 00-00 00-00>
Expected: kExpandedSelectRect
Which is: 24-byte object <0C-26 08-01 D3-01 00-00 2A-00 00-00 51-00 00-00 42-01 
00-00 00-00 00-00>
[  FAILED  ] OSRTest.PopupSize (104 ms)
[ RUN      ] OSRTest.PopupHideOnBlur
tests\unittests\os_rendering_unittest.cc(388): error: Value of: width
  Actual: 82
Expected: kExpandedSelectRect.width
Which is: 81
tests\unittests\os_rendering_unittest.cc(388): error: Value of: width
  Actual: 82
Expected: kExpandedSelectRect.width
Which is: 81
[  FAILED  ] OSRTest.PopupHideOnBlur (116 ms)
[ RUN      ] OSRTest.PopupHideOnClick
tests\unittests\os_rendering_unittest.cc(388): error: Value of: width
  Actual: 82
Expected: kExpandedSelectRect.width
Which is: 81
[  FAILED  ] OSRTest.PopupHideOnClick (123 ms)
[ RUN      ] OSRTest.PopupHideOnScroll
tests\unittests\os_rendering_unittest.cc(388): error: Value of: width
  Actual: 82
Expected: kExpandedSelectRect.width
Which is: 81
[  FAILED  ] OSRTest.PopupHideOnScroll (104 ms)
[ RUN      ] OSRTest.PopupHideOnEsc
tests\unittests\os_rendering_unittest.cc(388): error: Value of: width
  Actual: 82
Expected: kExpandedSelectRect.width
Which is: 81
[  FAILED  ] OSRTest.PopupHideOnEsc (104 ms)
[ RUN      ] OSRTest.PopupScrollInside
tests\unittests\os_rendering_unittest.cc(388): error: Value of: width
  Actual: 82
Expected: kExpandedSelectRect.width
Which is: 81
tests\unittests\os_rendering_unittest.cc(388): error: Value of: width
  Actual: 82
Expected: kExpandedSelectRect.width
Which is: 81
tests\unittests\os_rendering_unittest.cc(731): error: Value of: CefRect(1, 1, 
kExpandedSelectRect.width - 3, kExpandedSelectRect.height - 2)
  Actual: 24-byte object <0C-26 08-01 01-00 00-00 01-00 00-00 4E-00 00-00 40-01 00-00 00-00 00-00>
Expected: dirtyRects[0]
Which is: 24-byte object <0C-26 08-01 01-00 00-00 01-00 00-00 4F-00 00-00 40-01 
00-00 00-00 00-00>
[  FAILED  ] OSRTest.PopupScrollInside (105 ms)

This happens when display setting for font size is not 100% (set custom text 
size (DPI) option). In my case it was set to 107% (103 DPI).

Original issue reported on code.google.com by fdd...@gmail.com on 18 Apr 2013 at 5:06

GoogleCodeExporter commented 9 years ago
Not sure there's anything that we can/should do about this since they're 
effectively pixel tests and therefore require a consistent run environment.

Original comment by magreenb...@gmail.com on 18 Apr 2013 at 5:14

GoogleCodeExporter commented 9 years ago
It fails on checking popup width first, not bit tests.
Since OSR test provide device info with scale factor = 1 - i assume that CEF 
will render same result without dependency from system's DPI setting (may be 
i'm wrong?).
Probably OSR test can be fixed via tweaking some styles of test page. I'm not 
sure.

Original comment by fdd...@gmail.com on 18 Apr 2013 at 5:29

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 23 Oct 2014 at 5:29

GoogleCodeExporter commented 9 years ago
CEF is transitioning from Google Code to Bitbucket project hosting. If you 
would like to continue receiving notifications on this issue please add 
yourself as a Watcher at the new location: 
https://bitbucket.org/chromiumembedded/cef/issue/949

Original comment by magreenb...@gmail.com on 14 Mar 2015 at 3:25