JunitTest_toolkit_complex failing on Win 10 with HiDPI

Luke Benes lukebenes at hotmail.com
Sat Dec 30 08:49:29 UTC 2017


I'm setting the Subsequent test toolkit fail on my Win 10 machine require HiDPI. Any idea if this is a problem with the test or if it's showing a problem with LO's HiDPI support?

Steps to reproduce:
1. In win 10, Settings -> Display -> Scale -> 125% (or more)
2. Reboot
3. $ make JunitTest_toolkit_complex


The test passes at 100%, but for 125%+

D:/cygwin/home/Hearthstone/lode/opt/bin/make -j 4 -rs -f D:/core/Makefile.gbuild JunitTest_toolkit_complex

JUnit version 4.10
--------------------------------------------------------------------------------
starting class: complex.toolkit.GridControl
connecting ... done.
seeding random number generator with 8066950756965748425
.......
tearing down connection
finished class: complex.toolkit.GridControl
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
starting class: complex.toolkit.UnitConversion
connecting ...
.Window position and size in pixel:
X:107
Y:100
Width:640
Height:480

E
tearing down connection
finished class: complex.toolkit.UnitConversion
--------------------------------------------------------------------------------

Time: 38.98
There was 1 failure:
1) testXUnitConversion(complex.toolkit.UnitConversion)
java.lang.AssertionError: Window pos size wrong
        at org.junit.Assert.fail(Assert.java:93)
        at org.junit.Assert.assertTrue(Assert.java:43)
        at complex.toolkit.UnitConversion.testXUnitConversion(UnitConversion.java:130)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
        at org.junit.runners.Suite.runChild(Suite.java:128)
        at org.junit.runners.Suite.runChild(Suite.java:24)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
        at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
        at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
        at org.junit.runner.JUnitCore.main(JUnitCore.java:45)

FAILURES!!!
Tests run: 8,  Failures: 1

to rerun just this failed test without all others, run:

    make JunitTest_toolkit_complex


More information about the LibreOffice mailing list