This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 208458 - Evaluate org.netbeans.modules.xml.multiview.ui.SimpleDialogPanelTest.testLabels3 failure on Mac
Summary: Evaluate org.netbeans.modules.xml.multiview.ui.SimpleDialogPanelTest.testLabe...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0.1
Hardware: Macintosh Mac OS X
: P1 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: JDK_SPECIFIC, TEST
Depends on:
Blocks: 208445
  Show dependency tree
 
Reported: 2012-02-15 14:58 UTC by Jiri Skrivanek
Modified: 2012-03-23 02:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-02-15 14:58:16 UTC
As reported in bug 208445 org.netbeans.modules.xml.multiview.ui.SimpleDialogPanelTest.testLabels3 is failing on Mac with JDK7u4. Please, evaluate and possibly fix it.

junit.framework.AssertionFailedError: expected:<0> but was:<84>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:283)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:195)
at junit.framework.Assert.assertEquals(Assert.java:201)
at org.netbeans.modules.xml.multiview.ui.SimpleDialogPanelTest.testLabels3(SimpleDialogPanelTest.java:97)
Comment 1 Marian Mirilovic 2012-02-27 14:39:20 UTC
Please evaluate ASAP, escalated by JDK team ... we need to know whether it's a random failuer, issue in test or problem in JDK.
Comment 2 Svata Dedic 2012-03-01 16:30:43 UTC
The test fails, because our Mnemonics support handles MacOS X platform specially, just ignoring them. When the special handling is disabled, the test passes.

BUT - I was not able to verify whether the mnemonic is visually OK, build created locally on the test machine did not show main menu at all ! Probably error in the local build (?) = must use an official build of the reported version for verification.

Anyway, the 'culprit' is openide.awt, class org.openide.awt.Mnemonics, which blocks mnemonic set for MacOS.
Comment 3 Stanislav Aubrecht 2012-03-12 09:13:45 UTC
core-main 4c690ebcdcfa
Comment 4 Jiri Skrivanek 2012-03-12 15:24:51 UTC
Thank you. Tests were disabled for 7.1.1 tests distribution.
releases#0380d44ee3e0
Comment 5 Quality Engineering 2012-03-13 14:04:59 UTC
Integrated into 'main-golden', will be available in build *201203130400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4c690ebcdcfa
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #208458 - there are no mnemonics on Mac l&f
Comment 6 Quality Engineering 2012-03-23 02:50:16 UTC
Integrated into 'releases', will be available in build *201203222205* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/0380d44ee3e0
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #208458 - Test disabled for Mac issues.