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 246885 - In case of Karma + RequireJS the navigation from the Test Result window doesn't work with absolute baseUrl
Summary: In case of Karma + RequireJS the navigation from the Test Result window doesn...
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Testing (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-05 07:50 UTC by Martin Fousek
Modified: 2014-09-19 11:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
testRunner logging (56.47 KB, text/plain)
2014-09-11 12:41 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2014-09-05 07:50:43 UTC
Product Version: NetBeans IDE Dev (Build 20140829-fe74292add66)
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 3.13.0-35-generic running on amd64; UTF-8; en_US (nb)

If there is a failure during running tests the IDE doesn't navigate to the correct file/line in case we are using relative baseUrl in the requireJS config. I'm describing paths and whether they are ok for navigation action or not.

BTW. Output window has the links correct.

Chromium:
[not OK] at Object.<anonymous> (/home/marfous/Work/Breeze/repos/mcs_buf/breeze/client/test/modules/layout.dt/js/LayoutTemplateMetadataSpec.jsd1a70910035ad16b653c5bdada428bfb6c5541ef:21:43)
[OK] at Object.<anonymous> (/home/marfous/Work/Breeze/repos/mcs_buf/breeze/client/test/modules/layout.dt/js/LayoutTemplateMetadataSpec.js:21:43)

PhantomJS:
[not OK] at /test/modules/layout.dt/js/LayoutTemplateMetadataSpec.jsd1a70910035ad16b653c5bdada428bfb6c5541efa:21
[OK] at /test/modules/layout.dt/js/LayoutTemplateMetadataSpec.js:21

FireFox:
[not OK] at @/test/modules/layout.dt/js/LayoutTemplateMetadataSpec.jsd1a70910035ad16b653c5bdada428bfb6c5541efa:21:13
[OK] at @/test/modules/layout.dt/js/LayoutTemplateMetadataSpec.js:21:13

All OKs are for relative baseUrl set in the requireJS config.

Thanks a lot...
Comment 1 Martin Fousek 2014-09-11 12:41:16 UTC
Created attachment 149138 [details]
testRunner logging

Added logging with property set to FINEST.
Comment 2 Tomas Mysik 2014-09-11 12:57:54 UTC
Should be now, please verify. Thanks.

http://hg.netbeans.org/web-main/rev/f1c240cb6a93
http://hg.netbeans.org/web-main/rev/6002403a9708
Comment 3 Quality Engineering 2014-09-12 02:38:40 UTC
Integrated into 'main-silver', will be available in build *201409120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f1c240cb6a93
User: Tomas Mysik <tmysik@netbeans.org>
Log: #246885 - In case of Karma + RequireJS the navigation from the Test Result window doesn't work with absolute baseUrl
Comment 4 Martin Fousek 2014-09-12 06:37:35 UTC
Works like a charm.

Thanks Tomasi - the fix simplifies our development a lot!
Comment 5 Tomas Mysik 2014-09-16 13:35:23 UTC
Transplated to the releases repo, branch release801.

Thanks.

http://hg.netbeans.org/releases/rev/f6672718a02c
http://hg.netbeans.org/releases/rev/2a79b6915100
Comment 6 Quality Engineering 2014-09-17 12:17:01 UTC
Integrated into 'releases/release801', will be available in build *201409171118* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/f6672718a02c
User: Tomas Mysik <tmysik@netbeans.org>
Log: #246885 - In case of Karma + RequireJS the navigation from the Test Result window doesn't work with absolute baseUrl
(transplanted from f1c240cb6a930dfe8ddf719e76aebc248be7e7b3)
Comment 7 Vladimir Riha 2014-09-19 11:08:42 UTC
I've tried to break the LayoutTemplateMetadataSpec test and navigation to the file works fine from output window and test results. Verified in patch1


Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Updates: NetBeans IDE is updated to version NetBeans 8.0.1 Patch 1
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)