1999-10-02 00:55:01 +04:00
|
|
|
#! /bin/tcsh -f
|
|
|
|
|
|
|
|
# The contents of this file are subject to the Netscape Public
|
|
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/NPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
|
|
|
#
|
|
|
|
# The Original Code is Mozilla Communicator client code, released
|
|
|
|
# March 31, 1998.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
|
|
|
# Communications Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s): Akkana Peck.
|
|
|
|
|
|
|
|
#
|
|
|
|
# This is a collection of test files to guard against regressions
|
|
|
|
# in the Gecko output system.
|
|
|
|
#
|
|
|
|
|
|
|
|
set errmsg = ""
|
|
|
|
|
1999-10-07 05:10:32 +04:00
|
|
|
echo "Testing simple html to html ..."
|
1999-10-23 01:35:16 +04:00
|
|
|
TestOutput -i text/html -o text/html -f 0 -c OutTestData/simple.html OutTestData/simple.html
|
1999-10-07 05:10:32 +04:00
|
|
|
if ($status != 0) then
|
|
|
|
echo "Simple html to html failed.\n"
|
|
|
|
set errmsg = ($errmsg "simple.html")
|
|
|
|
endif
|
|
|
|
|
1999-10-23 01:35:16 +04:00
|
|
|
echo "Testing simple copy case ..."
|
1999-10-02 00:55:01 +04:00
|
|
|
TestOutput -i text/html -o text/plain -f 0 -w 0 -c OutTestData/simplecopy.out OutTestData/simple.html
|
|
|
|
if ($status != 0) then
|
|
|
|
echo "Simple copy test failed.\n"
|
1999-10-23 01:35:16 +04:00
|
|
|
set errmsg = ($errmsg "simplecopy.out")
|
1999-10-02 00:55:01 +04:00
|
|
|
endif
|
|
|
|
|
17564, 17871, 17883, 18249, 13753,
18012, 16800, maybe 17565 and 13278:
Integrate contributions from Ben Bucksch (mozilla@bucksch.org)
and Daniel Brattell (bratell@lysator.liu.se) to improve formatted
plaintext output, including adding text style indicators, improving
table output and wrapping, and fixing several wrapping/whitespace bugs.
Also update the auto tests to reflect some of the bugs recently fixed.
r=myself,mozilla@bucksch.org,bratell@lysator.liu.se
1999-11-11 02:50:45 +03:00
|
|
|
echo "Testing simple html to plaintext formatting ..."
|
|
|
|
TestOutput -i text/html -o text/plain -f 34 -w 70 -c OutTestData/simplefmt.out OutTestData/simple.html
|
|
|
|
if ($status != 0) then
|
|
|
|
echo "Simple copy test failed.\n"
|
|
|
|
set errmsg = ($errmsg "simplefmt.out")
|
|
|
|
endif
|
|
|
|
|
1999-12-02 01:41:22 +03:00
|
|
|
echo "Testing non-wrapped plaintext in preformatted mode ..."
|
|
|
|
TestOutput -i text/html -o text/plain -f 16 -c OutTestData/plainnowrap.out OutTestData/plain.html
|
1999-10-02 00:55:01 +04:00
|
|
|
if ($status != 0) then
|
|
|
|
echo "Non-wrapped plaintext test failed."
|
|
|
|
set errmsg = ($errmsg "plainnowrap.out")
|
|
|
|
endif
|
|
|
|
|
1999-12-02 01:41:22 +03:00
|
|
|
# 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
|
1999-10-02 00:55:01 +04:00
|
|
|
|
|
|
|
echo "Testing mail quoting ..."
|
17564, 17871, 17883, 18249, 13753,
18012, 16800, maybe 17565 and 13278:
Integrate contributions from Ben Bucksch (mozilla@bucksch.org)
and Daniel Brattell (bratell@lysator.liu.se) to improve formatted
plaintext output, including adding text style indicators, improving
table output and wrapping, and fixing several wrapping/whitespace bugs.
Also update the auto tests to reflect some of the bugs recently fixed.
r=myself,mozilla@bucksch.org,bratell@lysator.liu.se
1999-11-11 02:50:45 +03:00
|
|
|
TestOutput -i text/html -o text/plain -f 2 -w 50 -c OutTestData/mailquote.out OutTestData/mailquote.html
|
1999-10-02 00:55:01 +04:00
|
|
|
if ($status != 0) then
|
|
|
|
echo "Mail quoting test failed."
|
|
|
|
set errmsg = ($errmsg "mailquote.out")
|
|
|
|
endif
|
|
|
|
|
|
|
|
echo "Testing conversion of XIF entities ..."
|
|
|
|
TestOutput -i text/xif -o text/plain -c OutTestData/entityxif.out OutTestData/entityxif.xif
|
|
|
|
if ($status != 0) then
|
1999-11-03 05:44:44 +03:00
|
|
|
echo "XIF entity conversion test failed."
|
1999-10-02 00:55:01 +04:00
|
|
|
set errmsg = ($errmsg "entityxif.out")
|
|
|
|
endif
|
|
|
|
|
1999-10-07 05:10:32 +04:00
|
|
|
echo "Testing XIF to HTML ..."
|
|
|
|
TestOutput -i text/xif -o text/html -c OutTestData/xifstuff.out OutTestData/xifstuff.xif
|
|
|
|
if ($status != 0) then
|
1999-11-03 05:44:44 +03:00
|
|
|
echo "XIF to HTML conversion test failed."
|
|
|
|
set errmsg = ($errmsg "xifstuff.out")
|
|
|
|
endif
|
|
|
|
|
|
|
|
echo "Testing HTML Table to Text ..."
|
1999-12-02 01:09:21 +03:00
|
|
|
TestOutput -i text/html -o text/plain -f 2 -c OutTestData/htmltable.out OutTestData/htmltable.html
|
1999-11-03 05:44:44 +03:00
|
|
|
if ($status != 0) then
|
|
|
|
echo "HTML Table to Plain text failed."
|
|
|
|
set errmsg = ($errmsg "htmltable.out")
|
1999-10-07 05:10:32 +04:00
|
|
|
endif
|
|
|
|
|
1999-12-02 01:41:22 +03:00
|
|
|
if ($errmsg != "") then
|
1999-10-02 00:55:01 +04:00
|
|
|
echo " "
|
|
|
|
echo TESTS FAILED: $errmsg
|
|
|
|
exit 1
|
1999-12-02 01:41:22 +03:00
|
|
|
else
|
|
|
|
echo ALL TESTS SUCCEEDED
|
1999-10-02 00:55:01 +04:00
|
|
|
endif
|