From 701ec4500cbd3a01c7a62ea0cc90447d3ceb2fcf Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Sun, 22 Feb 2009 09:55:09 +0000 Subject: [PATCH] Added two more tests showing that the MIME type test still works. --- t/upload.t | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/t/upload.t b/t/upload.t index 3c747880..f87813e4 100755 --- a/t/upload.t +++ b/t/upload.t @@ -1,8 +1,8 @@ -# Copyright (C) 2006 Alex Schroeder +# Copyright (C) 2006, 2009 Alex Schroeder # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, @@ -11,14 +11,11 @@ # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the -# Free Software Foundation, Inc. -# 59 Temple Place, Suite 330 -# Boston, MA 02111-1307 USA +# along with this program. If not, see . require 't/test.pl'; package OddMuse; -use Test::More tests => 10; +use Test::More tests => 12; clear_pages(); @@ -35,3 +32,6 @@ test_page_negative($page, 'AAAA'); test_page_negative(get_page('search=AAA raw=1'), 'alex_pic'); test_page(get_page('search=alex raw=1'), 'alex_pic', 'image/png'); test_page(get_page('search=png raw=1'), 'alex_pic', 'image/png'); + +test_page(update_page('MimeTest', "#FILE foo/bar\niVBORw0KGgoAAAA"), 'This page is empty'); +test_page($redirect, '

Files of type foo/bar are not allowed.

');