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 208817 - Focus grabbed by tests
Summary: Focus grabbed by tests
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Test Runner (show other bugs)
Version: 7.1
Hardware: Macintosh Mac OS X
: P2 normal (vote)
Assignee: Lukas Jungmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-24 09:40 UTC by Ondrej Brejla
Modified: 2012-04-05 09:43 UTC (History)
2 users (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 Ondrej Brejla 2012-02-24 09:40:35 UTC
Everytime a new test class is run, I loose focus (e.g. I'm in browser, mail client, etc.) and JUnitTestRunner gets it. So I can't continue in my work...I have to wait to next focus switch. 

It's really really annoying and it blocks me in my work.

Product Version: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.6.0_29; Java HotSpot(TM) 64-Bit Server VM 20.4-b02-402
System: Mac OS X version 10.7.3 running on x86_64; MacCentralEurope; cs_CZ (nb)
User directory: /Users/ondrej/.netbeans/7.1
Cache directory: /Users/ondrej/.netbeans/7.1/var/cache
Comment 1 Theofanis Oikonomou 2012-03-29 12:10:18 UTC
It is reproducible in

Product Version: NetBeans IDE Dev (Build 20120329-d043f946333a)
Java: 1.6.0_29; Java HotSpot(TM) 64-Bit Server VM 20.4-b02-402
System: Mac OS X version 10.7.3 running on x86_64; MacRoman; en_US (nb)
User directory: /tmp/new
Cache directory: /tmp/new/var/cache       

apple.awt.UIElement is set to false in common.xml so that tests do not steal focus when running

any comments?
Comment 2 Lukas Jungmann 2012-03-29 12:18:12 UTC
ooops, my bad :-(

apple.awt.UIElement setting is not correctly propagated through macros in common.xml

this is the cause: http://hg.netbeans.org/main/diff/21999677ab8c/nbbuild/templates/common.xml
Comment 3 Lukas Jungmann 2012-04-04 09:47:14 UTC
main#1bef28e75b8b
Comment 4 Quality Engineering 2012-04-05 09:43:41 UTC
Integrated into 'main-golden', will be available in build *201204050400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1bef28e75b8b
User: Lukas Jungmann <jungi@netbeans.org>
Log: #208817 - Focus grabbed by tests