--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.
It looks like Maven is running your specs under HTMLUnit, which I
think uses the Rhino execution environment.
If you want to run in an environment without `console`, but you still
want to keep the console.log statements in your code, you can use
something like the following:
console || (console = {
log: function() {},
debug: function() {},
warn: function() {}
});
This will define a dummy console object if your environment doesn't
provide a real one.
2012/3/2 Volkan Tunç <vol...@linkz.net>:
> My machine is running ubuntu 10.4.
> I use maven with 3.0.0-12-generic version.
>
> I get this error on console.log("...."); line for calling console on
> my jasmine spec javascript.
>
> On Feb 13, 5:02 pm, "Davis W. Frank" <dwfr...@pivotallabs.com> wrote:
>> In which environment are you running Jasmine?
>>
>> > Hi all.
>>
>> > I wrote some jasmine specs but I have a problem when it starts.
>>
>> > I tried to run my project using "mvn clean test" but the output is ;
>> > "net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError:
>> > "console" is not defined."
>>
--
Rob Hunter (@rjhunter)
Just Some Guy, ThoughtWorks
I think the question is, 'what _JavaScript_ environment are you running Jasmine in?' IE7 and lower don't have console at all.-- Sent from my Palm Pre 2
On Mar 2, 2012 10:32 AM, Volkan Tunç <vol...@linkz.net> wrote:
My machine is running ubuntu 10.4.
I use maven with 3.0.0-12-generic version.
I get this error on console.log("...."); line for calling console on
my jasmine spec javascript.
On Feb 13, 5:02 pm, "Davis W. Frank" <dwfr...@pivotallabs.com> wrote:
> In which environment are you running Jasmine?
> --dwf
>
> 2012/2/13 Volkan Tunç <vol...@linkz.net>
>
>
>
>
>
>
>
>
>
> > Hi all.
>
> > I wrote some jasmine specs but I have a problem when it starts.
>
> > I tried to run my project using "mvn clean test" but the output is ;
> > "net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError:
> > "console" is not defined."
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Jasmine" group.
> > To post to this group, send email to jasmi...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > jasmine-js+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/jasmine-js?hl=en.
>
> --
> thx,
> --dwf
--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+unsubscribe@googlegroups.com.