/[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 427 by siliconforks, Wed Feb 18 16:08:33 2009 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  #    javascript-utf-8.sh - test a JavaScript file with UTF-8 encoding  #    javascript-utf-8.sh - test a JavaScript file with UTF-8 encoding
3  #    Copyright (C) 2008 siliconforks.com  #    Copyright (C) 2008, 2009 siliconforks.com
4  #  #
5  #    This program is free software; you can redistribute it and/or modify  #    This program is free software; you can redistribute it and/or modify
6  #    it under the terms of the GNU General Public License as published by  #    it under the terms of the GNU General Public License as published by
# 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.427

  ViewVC Help
Powered by ViewVC 1.1.24