diff --git a/mozilla/htmlparser/tests/outsinks/TestOutSinks b/mozilla/htmlparser/tests/outsinks/TestOutSinks index de72adb0e6d..e8e378cd4f5 100755 --- a/mozilla/htmlparser/tests/outsinks/TestOutSinks +++ b/mozilla/htmlparser/tests/outsinks/TestOutSinks @@ -48,19 +48,19 @@ if ($status != 0) then set errmsg = ($errmsg "simplefmt.out") endif -echo "Testing non-wrapped plaintext ..." -TestOutput -i text/html -o text/plain -f 0 -w 0 -c OutTestData/plainnowrap.out OutTestData/plain.html +echo "Testing non-wrapped plaintext in preformatted mode ..." +TestOutput -i text/html -o text/plain -f 16 -c OutTestData/plainnowrap.out OutTestData/plain.html if ($status != 0) then echo "Non-wrapped plaintext test failed." set errmsg = ($errmsg "plainnowrap.out") endif -echo "Testing wrapped and formatted plaintext ..." -TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html -if ($status != 0) then - echo "Wrapped plaintext test failed." - set errmsg = ($errmsg "plainwrap.out") -endif +# echo "Testing wrapped and formatted plaintext ..." +# TestOutput -i text/html -o text/plain -f 32 -c OutTestData/plainwrap.out OutTestData/plain.html +# if ($status != 0) then +# echo "Wrapped plaintext test failed." +# set errmsg = ($errmsg "plainwrap.out") +# endif echo "Testing mail quoting ..." TestOutput -i text/html -o text/plain -f 2 -w 50 -c OutTestData/mailquote.out OutTestData/mailquote.html @@ -90,8 +90,10 @@ if ($status != 0) then set errmsg = ($errmsg "htmltable.out") endif -if (errmsg != "") then +if ($errmsg != "") then echo " " echo TESTS FAILED: $errmsg exit 1 +else + echo ALL TESTS SUCCEEDED endif diff --git a/mozilla/htmlparser/tests/outsinks/TestOutSinks.bat b/mozilla/htmlparser/tests/outsinks/TestOutSinks.bat index c6d6522a700..7e310f09ae2 100644 --- a/mozilla/htmlparser/tests/outsinks/TestOutSinks.bat +++ b/mozilla/htmlparser/tests/outsinks/TestOutSinks.bat @@ -38,9 +38,9 @@ echo Testing non-wrapped plaintext ... TestOutput -i text/html -o text/plain -f 0 -w 0 -c OutTestData/plainnowrap.out OutTestData/plain.html IF ERRORLEVEL 1 echo Non-wrapped plaintext test failed. && set errmsg=%errmsg% plainnowrap.out -echo Testing wrapped bug unformatted plaintext ... -TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html -IF ERRORLEVEL 1 echo Wrapped plaintext test failed. && set errmsg=%errmsg% plainwrap.out +REM echo Testing wrapped bug unformatted plaintext ... +REM TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html +REM IF ERRORLEVEL 1 echo Wrapped plaintext test failed. && set errmsg=%errmsg% plainwrap.out echo Testing mail quoting ... TestOutput -i text/html -o text/plain -c OutTestData/mailquote.out OutTestData/mailquote.html @@ -59,3 +59,4 @@ TestOutput -i text/html -o text/plain -c OutTestData/htmltable.out OutTestData/h IF ERRORLEVEL 1 echo HTML Table to Plain text failed (%errorlevel%). && set errmsg=%errmsg% htmltable.out IF DEFINED %errmsg% echo && echo TESTS FAILED: %errmsg% && exit 1 +echo ALL TESTS SUCCEEDED diff --git a/mozilla/htmlparser/tests/outsinks/plainnowrap.out b/mozilla/htmlparser/tests/outsinks/plainnowrap.out index 3db8241fd2c..fe303d9de06 100644 --- a/mozilla/htmlparser/tests/outsinks/plainnowrap.out +++ b/mozilla/htmlparser/tests/outsinks/plainnowrap.out @@ -10,4 +10,3 @@ This is a test to make sure the output converters pick up the moz-pre-wrap style - This should be tested with wrapping off. This is the end. - diff --git a/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks b/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks index de72adb0e6d..e8e378cd4f5 100755 --- a/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks +++ b/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks @@ -48,19 +48,19 @@ if ($status != 0) then set errmsg = ($errmsg "simplefmt.out") endif -echo "Testing non-wrapped plaintext ..." -TestOutput -i text/html -o text/plain -f 0 -w 0 -c OutTestData/plainnowrap.out OutTestData/plain.html +echo "Testing non-wrapped plaintext in preformatted mode ..." +TestOutput -i text/html -o text/plain -f 16 -c OutTestData/plainnowrap.out OutTestData/plain.html if ($status != 0) then echo "Non-wrapped plaintext test failed." set errmsg = ($errmsg "plainnowrap.out") endif -echo "Testing wrapped and formatted plaintext ..." -TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html -if ($status != 0) then - echo "Wrapped plaintext test failed." - set errmsg = ($errmsg "plainwrap.out") -endif +# echo "Testing wrapped and formatted plaintext ..." +# TestOutput -i text/html -o text/plain -f 32 -c OutTestData/plainwrap.out OutTestData/plain.html +# if ($status != 0) then +# echo "Wrapped plaintext test failed." +# set errmsg = ($errmsg "plainwrap.out") +# endif echo "Testing mail quoting ..." TestOutput -i text/html -o text/plain -f 2 -w 50 -c OutTestData/mailquote.out OutTestData/mailquote.html @@ -90,8 +90,10 @@ if ($status != 0) then set errmsg = ($errmsg "htmltable.out") endif -if (errmsg != "") then +if ($errmsg != "") then echo " " echo TESTS FAILED: $errmsg exit 1 +else + echo ALL TESTS SUCCEEDED endif diff --git a/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks.bat b/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks.bat index c6d6522a700..7e310f09ae2 100644 --- a/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks.bat +++ b/mozilla/parser/htmlparser/tests/outsinks/TestOutSinks.bat @@ -38,9 +38,9 @@ echo Testing non-wrapped plaintext ... TestOutput -i text/html -o text/plain -f 0 -w 0 -c OutTestData/plainnowrap.out OutTestData/plain.html IF ERRORLEVEL 1 echo Non-wrapped plaintext test failed. && set errmsg=%errmsg% plainnowrap.out -echo Testing wrapped bug unformatted plaintext ... -TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html -IF ERRORLEVEL 1 echo Wrapped plaintext test failed. && set errmsg=%errmsg% plainwrap.out +REM echo Testing wrapped bug unformatted plaintext ... +REM TestOutput -i text/html -o text/plain -f 32 -w 50 -c OutTestData/plainwrap.out OutTestData/plain.html +REM IF ERRORLEVEL 1 echo Wrapped plaintext test failed. && set errmsg=%errmsg% plainwrap.out echo Testing mail quoting ... TestOutput -i text/html -o text/plain -c OutTestData/mailquote.out OutTestData/mailquote.html @@ -59,3 +59,4 @@ TestOutput -i text/html -o text/plain -c OutTestData/htmltable.out OutTestData/h IF ERRORLEVEL 1 echo HTML Table to Plain text failed (%errorlevel%). && set errmsg=%errmsg% htmltable.out IF DEFINED %errmsg% echo && echo TESTS FAILED: %errmsg% && exit 1 +echo ALL TESTS SUCCEEDED diff --git a/mozilla/parser/htmlparser/tests/outsinks/plainnowrap.out b/mozilla/parser/htmlparser/tests/outsinks/plainnowrap.out index 3db8241fd2c..fe303d9de06 100644 --- a/mozilla/parser/htmlparser/tests/outsinks/plainnowrap.out +++ b/mozilla/parser/htmlparser/tests/outsinks/plainnowrap.out @@ -10,4 +10,3 @@ This is a test to make sure the output converters pick up the moz-pre-wrap style - This should be tested with wrapping off. This is the end. -