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 246036 - Stacktrace of Firefox does not navigate to a file
Summary: Stacktrace of Firefox does not navigate to a file
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Testing (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-27 17:01 UTC by vkhashin
Modified: 2014-07-29 02:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (340.33 KB, application/x-zip)
2014-07-27 17:01 UTC, vkhashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vkhashin 2014-07-27 17:01:16 UTC
Created attachment 148343 [details]
sample project

From the test case.

- Use the sample_karma project again with already installed NodeJS modules
- Open karma.conf.js and modify it to use multiple browsers 

  browsers : ['Chrome', 'Firefox', 'PhantomJS'],

- Open test/unit/serviceSpec.js and paste following at the end of line 11: 

  expect(1).toEqual(2);

- Run all tests
If there is stacktrace (not supported by PhantomJS or Safari), make sure it is clickable and navigates to proper source file.

I have installed 2 browsers: chrome and firefox. And i have the stack trace for firefox: 
Firefox 30.0.0 (Ubuntu) service version should return current version FAILED
	Expected 1 to equal 2.
	@/home/vitaliy/NetBeansProjects/sample_karma/test/unit/servicesSpec.js:11:7
	d@/home/vitaliy/NetBeansProjects/sample_karma/app/lib/angular/angular.min.js:31:170
	workFn@/home/vitaliy/NetBeansProjects/sample_karma/test/lib/angular/angular-mocks.js:2104:11

The links does not navigates to proper source file.
But links in stack chrome stack trace:

Chrome 36.0.1985 (Linux) service version should return current version FAILED
	Expected 1 to equal 2.
	Error: Expected 1 to equal 2.
	    at null.<anonymous> (/home/vitaliy/NetBeansProjects/sample_karma/test/unit/servicesSpec.js:11:17)
	    at Object.d [as invoke] (/home/vitaliy/NetBeansProjects/sample_karma/app/lib/angular/angular.min.js:31:179)
	    at workFn (/home/vitaliy/NetBeansProjects/sample_karma/test/lib/angular/angular-mocks.js:2104:20)

navigates to proper source file correctly.
Comment 1 Vladimir Riha 2014-07-28 05:51:27 UTC
It works from Test Results window, I'll update the test case to mention it. But it doesn't work from Karma output window


Product Version: NetBeans IDE Dev (Build web-main-1088-on-20140725)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 2 Tomas Mysik 2014-07-28 06:03:45 UTC
Fixed, Firefox now reports also column number.

Thanks.

http://hg.netbeans.org/web-main/rev/62e9271ac803
Comment 3 Quality Engineering 2014-07-29 02:33:06 UTC
Integrated into 'main-silver', will be available in build *201407290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/62e9271ac803
User: Tomas Mysik <tmysik@netbeans.org>
Log: #246036 - Stacktrace of Firefox does not navigate to a file