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 255719 - Testing pass rate cut on resize of test results explorer
Summary: Testing pass rate cut on resize of test results explorer
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-06 08:36 UTC by Jiri Kovalsky
Modified: 2015-10-16 14:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Video showing how pass rate is cut out when width of test results panel doubles. (520.28 KB, video/ogg)
2015-10-06 08:36 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2015-10-06 08:36:02 UTC
Created attachment 156545 [details]
Video showing how pass rate is cut out when width of test results panel doubles.

Product Version: NetBeans IDE 8.1 RC (Build 201510012201)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)

Description:
============
There must be some hard coded size in the progress bar of test results window. When user enlarges its width, the pass rate information disappears - see attached video. This does not happen if the pass rate is 100%.

Steps to reproduce:
===================
1. Create sample AnagramGame project.
2. Open "Test Packages > com.toy.anagrams.lib > WordLibraryTest.java" file and change assertTrue() method call to assertFalse() on line 60.
3. Right click AnagramGame project node and invoke "Test" from its popup menu.
4. Once the "Test Results" output window opens, try to double width of the left panel with test results tree.

Expected: Once the new width exceeds its doubled original width, "Tests passed: ..." text starts to disappear.
Actual: "Tests passed: ..." text is always visible.
Comment 1 Theofanis Oikonomou 2015-10-08 15:44:35 UTC
Changeset: e5c5adee4615
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-10-08 17:44
Message:
Comment 2 Theofanis Oikonomou 2015-10-08 15:46:45 UTC
Reproducible even with the 100% rate. The problem was with the buffered image that was used to actually paint the text in the progress bar. It was using old size of the component. Should work now as expected. Thank you for catching.
Comment 3 Quality Engineering 2015-10-09 01:22:15 UTC
Integrated into 'main-silver', will be available in build *201510090002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e5c5adee4615
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #255719 - Testing pass rate cut on resize of test results explorer
Comment 4 Jiri Kovalsky 2015-10-16 14:16:01 UTC
Product Version: NetBeans IDE Dev (Build 201510110923)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)

Verified. Thanks for the fix Fanis.