Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 514715

Summary: [Outline] Display parent call expression if a function is used as an argument
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: JS ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: 13.0   
Target Milestone: 15.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Curtis Windatt CLA 2017-04-04 10:20:27 EDT
It is a very common pattern to see:

doSomething(function(a){ 
...
});

getText().then(function(text){
...
});

define(['dep1', 'dep2'], function(dep1, dep2){
...
});

it("Test we have vars", function(worker){
...
});

goTo(42, (a) => {
...
});

In the Outline we just display function() or arrow function() => {}. We should display the call expression, probably in the labelPost property.  It would be great to see the other arguments as well to help navigating tests.
Comment 1 Curtis Windatt CLA 2017-04-04 12:47:48 EDT
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=8f200d015dfaa44144964dd140b8171dafe6eaf4
Fixed in master

I refactored the outliner tests to be more accurate, print out actual output and to speed up future tests.