Item11683: unit tests are have no script context.
Priority: Urgent
Current State: No Action Required
Released In: 1.2.0
Target Release: minor
Applies To: Engine
Component:
Branches:
which means they're not actually testing the code that is running.
for example, the LINKTOOLTIP code returns '' if its not in the
view
context.
This is a very well hidden gotcha.
--
SvenDowideit - 22 Mar 2012
I assume you mean the tests are run in a 'script' context rather than a 'view' context (the headline is unclear)?
The LINKTOOLTIP code ought to test both with the 'view' context set and with it unset (I see that's what it does); there is no general solution to this problem.
No action.
--
CrawfordCurrie - 22 Mar 2013