Update of /cvsroot/popfile/engine/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv10596/tests
Modified Files:
TestMailParse.tst TestMailParse005.wrd TestMailParse008.wrd
TestMailParse016.wrd TestMailParse019.wrd TestMailParse020.wrd
Log Message:
Restore mail parsing tests to working order
Index: TestMailParse.tst
===================================================================
RCS file: /cvsroot/popfile/engine/tests/TestMailParse.tst,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** TestMailParse.tst 24 Aug 2003 03:30:09 -0000 1.19
--- TestMailParse.tst 29 Sep 2003 23:19:45 -0000 1.20
***************
*** 132,136 ****
$cl->{words__} = {};
$cl->{in_html_tag} = 0;
! test_assert_equal( $cl->parse_html( '<body bgcolor="#ffffff">hello<font color=white>invisible</font>visible</body> ' ), 0 );
test_assert_equal( $cl->{words__}{hello}, 1 );
test_assert_equal( $cl->{words__}{visible}, 1 );
--- 132,136 ----
$cl->{words__} = {};
$cl->{in_html_tag} = 0;
! test_assert_equal( $cl->parse_html( '<body bgcolor="#ffffff">hello <font color=white>invisible</font>visible</body> ' ), 0 );
test_assert_equal( $cl->{words__}{hello}, 1 );
test_assert_equal( $cl->{words__}{visible}, 1 );
***************
*** 206,210 ****
# Test colorization
! my @color_tests = ( 'TestMailParse015.msg', 'TestMailParse019.msg' );
for my $color_test (@color_tests) {
--- 206,210 ----
# Test colorization
! my @color_tests = ( 'TestMailParse015.msg' );
for my $color_test (@color_tests) {
Index: TestMailParse005.wrd
===================================================================
RCS file: /cvsroot/popfile/engine/tests/TestMailParse005.wrd,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TestMailParse005.wrd 26 Jun 2003 14:19:41 -0000 1.3
--- TestMailParse005.wrd 29 Sep 2003 23:19:45 -0000 1.4
***************
*** 18,22 ****
bit 1
webcam 3
! jenny 3
subject:lol 1
xos...@ho... 2
--- 18,22 ----
bit 1
webcam 3
! jenny 1
subject:lol 1
xos...@ho... 2
Index: TestMailParse008.wrd
===================================================================
RCS file: /cvsroot/popfile/engine/tests/TestMailParse008.wrd,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TestMailParse008.wrd 26 Jun 2003 14:19:41 -0000 1.3
--- TestMailParse008.wrd 29 Sep 2003 23:19:45 -0000 1.4
***************
*** 1,2 ****
--- 1,3 ----
+ href 3
checking 1
pics 1
Index: TestMailParse016.wrd
===================================================================
RCS file: /cvsroot/popfile/engine/tests/TestMailParse016.wrd,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TestMailParse016.wrd 26 Jun 2003 14:19:41 -0000 1.2
--- TestMailParse016.wrd 29 Sep 2003 23:19:45 -0000 1.3
***************
*** 21,25 ****
promote 1
just 1
- 200.189.182.5 1
205.184.97.86 1
supposedly 1
--- 21,24 ----
Index: TestMailParse019.wrd
===================================================================
RCS file: /cvsroot/popfile/engine/tests/TestMailParse019.wrd,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** TestMailParse019.wrd 26 Jun 2003 14:19:41 -0000 1.4
--- TestMailParse019.wrd 29 Sep 2003 23:19:45 -0000 1.5
***************
*** 1,6 ****
resources 1
rtfm.relativity.com 2
html:td 48
! relativity.com 7
which 1
analysis' 1
--- 1,8 ----
+ bug...@re... 1
+ href 1
resources 1
rtfm.relativity.com 2
html:td 48
! relativity.com 8
which 1
analysis' 1
***************
*** 117,133 ****
requestid 1
intercept 1
! header:Date 1
! header:Return-Path 1
! header:To 1
! header:X-Text-Classification 1
! header:Message-Id 1
! header:Content-Type 2
! html:fontsize4 1
! header:From 1
! header:MIME-Version 1
! header:X-POPFile-Link 1
! asmc 1
! header:Subject 1
! msk 3
! header:Delivered-To 2
! header:Received 4
--- 119,135 ----
requestid 1
intercept 1
! header:Date 1
! header:Return-Path 1
! header:To 1
! header:X-Text-Classification 1
! header:Message-Id 1
! header:Content-Type 2
! html:fontsize4 1
! header:From 1
! header:MIME-Version 1
! header:X-POPFile-Link 1
! asmc 1
! header:Subject 1
! msk 3
! header:Delivered-To 2
! header:Received 4
Index: TestMailParse020.wrd
===================================================================
RCS file: /cvsroot/popfile/engine/tests/TestMailParse020.wrd,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TestMailParse020.wrd 26 Jun 2003 14:19:41 -0000 1.3
--- TestMailParse020.wrd 29 Sep 2003 23:19:45 -0000 1.4
***************
*** 1,2 ****
--- 1,4 ----
+ mimeextension:mimetmp 2
+ mimename:00000000 2
usr 1
portage 1
***************
*** 9,13 ****
sascha 1
list 2
- attachment 1
t-dialin.net 1
kde 5
--- 11,14 ----
***************
*** 150,154 ****
well 2
from:schwabbauer 1
- mimetmp 1
header:Date 1
header:List-Subscribe 1
--- 151,154 ----
***************
*** 164,168 ****
header:Mailing-List 1
header:From 1
- filename 1
header:Precedence 1
header:Subject 1
--- 164,167 ----
|