summaryrefslogtreecommitdiff
path: root/tests/11_crawl-parsing.test
blob: 39aeb039f323fd74dba726553419f970b5617ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#

bash check-network.sh ||  ! echo "skipping online unit tests" || exit 77

# http://code.google.com/p/httrack/issues/detail?id=4&can=1
bash crawl-test.sh --errors 0 --files 4 \
	--found ut.httrack.com/parsing/back5e1f.gif \
	--found ut.httrack.com/parsing/events.html \
	--found ut.httrack.com/parsing/fade230f4.gif \
	--found ut.httrack.com/parsing/fade3860.gif \
	httrack http://ut.httrack.com/parsing/events.html

# http://code.google.com/p/httrack/issues/detail?id=2&can=1
bash crawl-test.sh --errors 0 --files 3 \
	--found ut.httrack.com/parsing/background-image.css \
	--found ut.httrack.com/parsing/background-image.html \
	--found ut.httrack.com/parsing/fade.gif \
	httrack http://ut.httrack.com/parsing/background-image.html

# javascript parsing
bash crawl-test.sh --errors 0 --files 3 \
	--found ut.httrack.com/parsing/back.gif \
	--found ut.httrack.com/parsing/fade.gif \
	--found ut.httrack.com/parsing/javascript.html \
	httrack http://ut.httrack.com/parsing/javascript.html

# handling of + before query string
bash crawl-test.sh --errors 0 --files 6 \
	--found ut.httrack.com/parsing/escaping.html \
	--found "ut.httrack.com/parsing/foo bar30f4.html" \
	--found "ut.httrack.com/parsing/foo bar5e1f.html" \
	--found "ut.httrack.com/parsing/foo+bar+plus3860.html" \
	--found "ut.httrack.com/parsing/foo barae52.html" \
	--found "ut.httrack.com/parsing/foo bar7b30.html" \
	httrack http://ut.httrack.com/parsing/escaping.html