/[jscoverage]/trunk/tests/javascript-utf-8.sh
ViewVC logotype

Diff of /trunk/tests/javascript-utf-8.sh

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

revision 248 by siliconforks, Sun Oct 5 18:06:33 2008 UTC revision 314 by siliconforks, Mon Oct 13 17:52:41 2008 UTC
# Line 22  Line 22 
22    
23  export PATH=.:..:$PATH  export PATH=.:..:$PATH
24    
25    if jscoverage-server --version | grep -q 'iconv\|MultiByteToWideChar'
26    then
27      character_encoding_support=yes
28    else
29      character_encoding_support=no
30    fi
31    
32  rm -fr DIR  rm -fr DIR
33  $VALGRIND jscoverage --no-highlight --encoding=UTF-8 javascript-utf-8 DIR  case "$character_encoding_support" in
34  diff -u --strip-trailing-cr javascript-utf-8.expected/javascript-utf-8.js DIR/javascript-utf-8.js    yes)
35        $VALGRIND jscoverage --no-highlight --encoding=UTF-8 javascript-utf-8 DIR
36        diff -u --strip-trailing-cr javascript-utf-8.expected/javascript-utf-8.js DIR/javascript-utf-8.js
37        ;;
38      *)
39        ! $VALGRIND jscoverage --no-highlight --encoding=UTF-8 javascript-utf-8 DIR > OUT 2> ERR
40        echo "jscoverage: encoding UTF-8 not supported" | diff - ERR
41        ;;
42    esac
43  rm -fr DIR  rm -fr DIR

Legend:
Removed from v.248  
changed lines
  Added in v.314

  ViewVC Help
Powered by ViewVC 1.1.24