/[jscoverage]/trunk/tests/charset.sh
ViewVC logotype

Diff of /trunk/tests/charset.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 255 by siliconforks, Sun Oct 5 18:08:00 2008 UTC revision 256 by siliconforks, Sun Oct 5 18:10:38 2008 UTC
# Line 65  Line 65 
65  cat javascript.expected/javascript-iso-8859-1.js | sed 's/javascript-iso-8859-1.js/http:\/\/127.0.0.1:8000\/iso-8859-1.js/g' >> EXPECTED  cat javascript.expected/javascript-iso-8859-1.js | sed 's/javascript-iso-8859-1.js/http:\/\/127.0.0.1:8000\/iso-8859-1.js/g' >> EXPECTED
66  curl -s -x 127.0.0.1:8080 http://127.0.0.1:8000/iso-8859-1.js > ACTUAL  curl -s -x 127.0.0.1:8080 http://127.0.0.1:8000/iso-8859-1.js > ACTUAL
67  diff EXPECTED ACTUAL  diff EXPECTED ACTUAL
68    
69    # bogus charset
70    echo 502 > EXPECTED
71    ! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://127.0.0.1:8000/bogus.js 2> /dev/null > ACTUAL
72    diff EXPECTED ACTUAL
73    
74    # malformed encoding
75    echo 502 > EXPECTED
76    ! curl -f -w '%{http_code}\n' -x 127.0.0.1:8080 http://127.0.0.1:8000/malformed.js 2> /dev/null > ACTUAL
77    diff EXPECTED ACTUAL

Legend:
Removed from v.255  
changed lines
  Added in v.256

  ViewVC Help
Powered by ViewVC 1.1.24