Update of /cvsroot/popfile/engine/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv29404/tests
Added Files:
TestHTML.tst
Log Message:
Fix bug where you couldn't delete magnets with special characters in them; lesson is that you should not call url_encode on form values because the browser will do the URL encoding for you; add the start of a test suite for HTML.pm that does some simple tests on url_encode
--- NEW FILE: TestHTML.tst ---
# ---------------------------------------------------------------------------------------------
#
# Tests for HTML.pm
#
# Copyright (c) 2003 John Graham-Cumming
#
# ---------------------------------------------------------------------------------------------
use UI::HTML;
my $c = new UI::HTML;
test_assert_equal( $c->url_encode( ']' ), '%5d' );
test_assert_equal( $c->url_encode( '[' ), '%5b' );
test_assert_equal( $c->url_encode( '[]' ), '%5b%5d' );
test_assert_equal( $c->url_encode( '[foo]' ), '%5bfoo%5d' );
|