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 208451 - Evaluate org.openide.awt.ActionsTest.testTooltipsContainAccelerator failure on Mac
Summary: Evaluate org.openide.awt.ActionsTest.testTooltipsContainAccelerator failure o...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (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:34 UTC by Jiri Skrivanek
Modified: 2012-03-12 15:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
org.openide.awt.MnemonicsTest.testSetLocalizedTextWithModel failure. (1.79 KB, text/plain)
2012-02-15 14:40 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-02-15 14:34:30 UTC
As reported in bug 208445 org.openide.awt.ActionsTest.testTooltipsContainAccelerator is failing on Mac with JDK7u4. Please, evaluate and possibly fix it.

junit.framework.AssertionFailedError: null
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertTrue(Assert.java:27)
at org.openide.awt.ActionsTest.testTooltipsContainAccelerator(ActionsTest.java:318)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at junit.framework.TestCase.runTest(TestCase.java:168)
at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:95)
at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:396)
at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:325)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701)
at java.awt.EventQueue.access$000(EventQueue.java:102)
at java.awt.EventQueue$3.run(EventQueue.java:662)
at java.awt.EventQueue$3.run(EventQueue.java:660)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:671)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Comment 1 Jiri Skrivanek 2012-02-15 14:40:15 UTC
Created attachment 115759 [details]
org.openide.awt.MnemonicsTest.testSetLocalizedTextWithModel failure.

Also please evaluate MnemonicsTest failure.
Comment 2 Marian Mirilovic 2012-02-27 14:38:41 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 3 Stanislav Aubrecht 2012-02-27 14:58:01 UTC
the same tests fail also when running on jdk 1.6. and it seems the tests are wrong - we remove all mnemonics on mac os x.

is there any hudson job running the tests on a mac machine?
Comment 4 Marian Mirilovic 2012-02-27 15:02:24 UTC
Not yet, we are waiting for 2 Macs now and will add one to the matrix soon. 

Standa, does it mean it's a bug in test right ?
Comment 5 Stanislav Aubrecht 2012-02-27 15:08:45 UTC
(In reply to comment #4)
> Not yet, we are waiting for 2 Macs now and will add one to the matrix soon. 
> 
> Standa, does it mean it's a bug in test right ?

right, there are no mnemonics on a mac so we can't expect any in unit tests either
Comment 6 Marian Mirilovic 2012-02-27 15:12:36 UTC
Ok, so could you please fix the tests ? We will include this change into 7.1.1 test pack which will be used by JDK team to test next updates of JDK 7(including Mac's one). Thanks in advance
Comment 7 Stanislav Aubrecht 2012-02-27 15:52:44 UTC
i fixed MnemonicsTest in core-main b87c3e5e8d30

there is one regression in JDK 1.7 u4 though - ActionsTest.testTooltipsContainAccelerator fails because the expected tooltip for CTRL+C keyboard shortcut should be something like "^+C" on mac os x. however JDK u4 says it's "Ctrl+C"
Comment 8 Stanislav Aubrecht 2012-02-28 08:43:58 UTC
transplanted to release71_fixes branch as 6f4f85827612
Comment 9 Marian Mirilovic 2012-02-28 08:48:13 UTC
Standa, I think you can close as fixed now, thanks a lot.
Comment 10 Quality Engineering 2012-02-28 10:50:25 UTC
Integrated into 'main-golden', will be available in build *201202280400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b87c3e5e8d30
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #208451 - there are no mnemonics on Mac
Comment 11 Stanislav Aubrecht 2012-02-28 10:53:38 UTC
closing