Re: [jasmine-js] Testing external *.js files

372 views
Skip to first unread message

Davis W. Frank

unread,
Mar 29, 2013, 1:27:17 PM3/29/13
to jasmi...@googlegroups.com
How are you using Jasmine? Are you using just the HTML file that comes with the standalone distribution, or are you using the Jasmine gem?


On Fri, Mar 29, 2013 at 12:30 AM, Владимир Авдеев <arch...@gmail.com> wrote:

For example please see this file:https://github.com/alterm4nn/ChronoZoom/blob/master/Test/chronozoom20.test/Tests.BL/Scripts/Specs/TimeScaleSpec.js
At the beginning of the page i have:
...
/// <reference path="../Js/timescale.js" />
...

This solution I found on the internet, and it work fine for me, but I need every time copy "timescale.js" file from main project. (fromhttps://github.com/alterm4nn/ChronoZoom/tree/master/Source/Chronozoom.UI/Scripts).

I try to set relative path (for example: ../../../../Source/Chronozoom.UI/Scripts/timescale.js), but parent folder always: /Test/chronozoom20.test/Tests.BL/.
I want to be able to set the full path or relative path to different location. It is possible?

--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jasmine-js+...@googlegroups.com.
To post to this group, send email to jasmi...@googlegroups.com.
Visit this group at http://groups.google.com/group/jasmine-js?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
thx,
--dwf

Davis W. Frank

unread,
Apr 1, 2013, 1:24:04 PM4/1/13
to jasmi...@googlegroups.com
The standalone distribution is Jasmine and an HTML file to load Jasmine. It is up to you to manage the script tags for all of your source and spec files. Most projects use some sort of web server to load these files.

So what is your development environment? Which framework(s) are you using? What is parsing the comments and that reference "tag"? That should be were your issue is.

--dwf


On Mon, Apr 1, 2013 at 12:23 AM, Владимир Авдеев <arch...@gmail.com> wrote:
I use jasmine-standalone-1.3.1

пятница, 29 марта 2013 г., 21:27:17 UTC+4 пользователь DWF написал:



--
thx,
--dwf

Владимир Авдеев

unread,
Apr 3, 2013, 7:35:33 AM4/3/13
to jasmi...@googlegroups.com
I use "jasmine-jquery.js" and jQuery for interaction with DOM.
for example:
setFixtures('<body></body>');
$('body').prepend('<div id="vc"></div>');
var vc = $('#vc');

Dev environment: Win8 enterprice, java version "1.7.0_11", VS2012.

///<reference path=""/> it is javascript feature, and now I started to look for the answer on Internet..

понедельник, 1 апреля 2013 г., 21:24:04 UTC+4 пользователь DWF написал:
Reply all
Reply to author
Forward
0 new messages