Mercurial > hg-stable
comparison tests/test-highlight @ 9426:b42b03308ae9
test-highlight: remove redundant test
Changeset 799373ff2554 is testing how a EUC-JP encoded Japanese file
is treated in different encodings, so the ISO-8859-1 encoded German
file is no longer needed.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Fri, 04 Sep 2009 23:45:13 +0200 |
parents | 799373ff2554 |
children | 19c3fefdaec9 b190a8125b43 |
comparison
equal
deleted
inserted
replaced
9425:6cfea6e4c892 | 9426:b42b03308ae9 |
---|---|
45 n = 10 | 45 n = 10 |
46 p = primes() | 46 p = primes() |
47 print "The first %d primes: %s" % (n, list(islice(p, n))) | 47 print "The first %d primes: %s" % (n, list(islice(p, n))) |
48 EOF | 48 EOF |
49 | 49 |
50 # check for UnicodeDecodeError with iso-8859-1 file contents | |
51 python -c 'fp = open("isolatin.txt", "w"); fp.write("h\xFCbsch\n"); fp.close();' | |
52 | |
53 hg ci -Ama | 50 hg ci -Ama |
54 | 51 |
55 echo % hg serve | 52 echo % hg serve |
56 hg serve -p $HGPORT -d -n test --pid-file=hg.pid -A access.log -E errors.log | 53 hg serve -p $HGPORT -d -n test --pid-file=hg.pid -A access.log -E errors.log |
57 cat hg.pid >> $DAEMON_PIDS | 54 cat hg.pid >> $DAEMON_PIDS |
58 | 55 |
59 echo % hgweb filerevision, html | 56 echo % hgweb filerevision, html |
60 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/primes.py') \ | 57 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/primes.py') \ |
61 | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mf\"/class=\"mi\"/g" | 58 | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mf\"/class=\"mi\"/g" |
62 | |
63 echo % hgweb filerevision, html | |
64 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file/tip/isolatin.txt') \ | |
65 | sed "s/class=\"k\"/class=\"kn\"/g" | |
66 | 59 |
67 echo % hgweb fileannotate, html | 60 echo % hgweb fileannotate, html |
68 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/primes.py') \ | 61 ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/annotate/tip/primes.py') \ |
69 | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mi\"/class=\"mf\"/g" | 62 | sed "s/class=\"k\"/class=\"kn\"/g" | sed "s/class=\"mi\"/class=\"mf\"/g" |
70 | 63 |