Skip to content

Commit 89b842b

Browse files
simbabqueoalders
authored andcommitted
add tests for mech-dump --images --links
1 parent 47b9835 commit 89b842b

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

t/mech-dump/mech-dump.t

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ my $source = 'file:t/google.html t/find_inputs.html t/html_file.txt';
2525

2626
my $perl;
2727
$perl = $1 if $^X =~ /^(.+)$/;
28-
my $command = "$perl -Ilib $exe --forms $source";
28+
my $command = "$perl -Ilib $exe --forms --images --links $source";
2929

3030
my $actual = `$command`;
3131

@@ -40,6 +40,23 @@ GET file:/target-page [bob-the-form]
4040
btnG=Google Search (submit)
4141
btnI=I'm Feeling Lucky (submit)
4242
43+
44+
/images/logo.gif
45+
46+
47+
/imghp?hl=en&tab=wi&ie=UTF-8
48+
/grphp?hl=en&tab=wg&ie=UTF-8
49+
/dirhp?hl=en&tab=wd&ie=UTF-8
50+
/nwshp?hl=en&tab=wn&ie=UTF-8
51+
/advanced_search?hl=en
52+
/preferences?hl=en
53+
/language_tools?hl=en
54+
/tour/services/query.html
55+
/ads/
56+
/services/
57+
/options/
58+
/about.html
59+
4360
POST http://localhost/ (multipart/form-data) [1st_form]
4461
1a= (text)
4562
submit1=Submit (image)
@@ -71,6 +88,23 @@ GET file:/target-page [bob-the-form]
7188
btnG=Google Search (submit)
7289
btnI=I'm Feeling Lucky (submit)
7390
91+
92+
/images/logo.gif
93+
94+
95+
/imghp?hl=en&tab=wi&ie=UTF-8
96+
/grphp?hl=en&tab=wg&ie=UTF-8
97+
/dirhp?hl=en&tab=wd&ie=UTF-8
98+
/nwshp?hl=en&tab=wn&ie=UTF-8
99+
/advanced_search?hl=en
100+
/preferences?hl=en
101+
/language_tools?hl=en
102+
/tour/services/query.html
103+
/ads/
104+
/services/
105+
/options/
106+
/about.html
107+
74108
POST http://localhost/ (multipart/form-data) [1st_form]
75109
1a= (text)
76110
submit1=Submit (image)

0 commit comments

Comments
 (0)