NicolasPelletier / js-test-driver

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

serve gif file #321

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I served gif file and get it, gif is broken. (File attach)
Message FireFox: Image corrupt or truncated: "Path to image"
Configuration file (jsTestDriver.config)
server: http://localhost:4224
load:
 - javascript/UnitTests/file.js
test:
 - javascript/UnitTests/Tests/test.js
serve:
 - javascript/dojo/resources/blank.gif

This is Request and Response:

GET /test/javascript/dojo/resources/blank.gif HTTP/1.1
Host: localhost:4224
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 
Firefox/9.0.1
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Referer: 
http://localhost:4224/slave/page/RUNNER/id/1325083472301/mode/quirks/upload_size
/50

HTTP/1.1 200 OK
Content-Type: text/plain
Pragma: no-cache
Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate
Expires: Sat, 22 Sep 1984 00:00:00 GMT
Transfer-Encoding: chunked
Server: Jetty(6.1.x)

2B
file in binary code
0

System:
Window 7, JsTestDriver-1.3.2, FireFox 9.0.1, IE9.

Start JsTestDriver:
java -jar JsTestDriver-1.3.3d.jar --basePath "E:\Work\Head" --config 
"E:\Work\Head\javascript\UnitTests\jsTestDriver.config" --tests all 
--testOutput D:\JsTestDriver

I think this is problem with "Content-Type: text/plain" it should be image.

Original issue reported on code.google.com by sc.shche...@gmail.com on 28 Dec 2011 at 3:43

Attachments:

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

Original comment by corbinrs...@gmail.com on 26 Mar 2012 at 12:49

GoogleCodeExporter commented 9 years ago
js-test-driver seems to be inactive since 2012. If it benefits anyone, here is 
a patch for this issue:

https://github.com/brentongunning/js-test-driver/commit/c3cf07014be7c19709838485
3b18adedd215edad

-Brent

Original comment by brentong...@gmail.com on 17 Feb 2014 at 7:30