LiTiang / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

jsTestDriver server servs js-files with starting "?" resulting in no tests #210

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to update from 1.2.2 -> 1.3.1 but not getting it to work. 

After some debugging I've found 2 problems, the first is that it seems to not 
be able to locate the server property in jsTestDriver.conf. I have to specify 
it when running the tests.

The other of is a show-stopper. Then running the tests (i'm on a Windows 7 box) 
the js files loaded up to the browser add an extra "?" at the start of each 
file.

I've checked the js files in a bunch of editors (notepad++, emacs, VS2010 and 
TextMate) and there's no starting "?" in the files, so this is added by the 
server somehow!

Does any one know away around this?

..fredrik

ps. started a ticket about this!

Original issue reported on code.google.com by carl.fre...@gmail.com on 2 Mar 2011 at 2:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just tested the same files and config on my mac, same result. 

When using the curl command I get the same thing...

"?BasketTest = TestCase("BasketTest")...."

Tried finding something the source code that could relate but couldn't find 
anything. Some maybe it's in the server?

Would be great to know if this is a quick fix or something that's going to be 
fixed in the next release?

Original comment by carl.fre...@gmail.com on 2 Mar 2011 at 2:54

GoogleCodeExporter commented 9 years ago
Seems that both problems is caused by the file encoding of the JS files. When 
changing the files from UTF-8 to ANSI the problems seems to disappear.  The 
config file is found and the js files does no longer contain a starting "?". 

Is this still a bug or "meant to be" ?

Original comment by carl.fre...@gmail.com on 2 Mar 2011 at 3:05

GoogleCodeExporter commented 9 years ago
When switching to 1.3.0 I had to remove the BOM on the js files to get 
JsTestDriver working again.  Saving as UTF-8 without BOM.

Original comment by dpatte...@gmail.com on 4 Mar 2011 at 12:42

GoogleCodeExporter commented 9 years ago
Issue 90 has been merged into this issue.

Original comment by corbinrs...@gmail.com on 30 Mar 2011 at 10:57

GoogleCodeExporter commented 9 years ago
Issue 50 has been merged into this issue.

Original comment by corbinrs...@gmail.com on 30 Mar 2011 at 10:58

GoogleCodeExporter commented 9 years ago

Original comment by corbinrs...@gmail.com on 30 Mar 2011 at 10:59