shortcut no longer overrides getToolbar, so stop testing it

This commit is contained in:
Doug Bell 2011-05-05 15:54:14 -05:00
parent ef2727f6f5
commit e34d1ad38c

View file

@ -14,7 +14,7 @@ use strict;
use WebGUI::Test;
use WebGUI::Session;
use Test::More tests => 23; # increment this value for each test you create
use Test::More tests => 21; # increment this value for each test you create
use Test::Exception;
use WebGUI::Asset::Snippet;
@ -42,15 +42,6 @@ foreach my $property (keys %{$properties}) {
is ($snippet->get($property), $properties->{$property}, "updated $property is ".$properties->{$property});
}
# Test the getToolbar method
for (1..2) {
my $toolbarState = $snippet->getToolbarState;
my $toolbar = $snippet->getToolbar;
is($toolbar, undef, 'getToolbar method returns undef when _toolbarState is set') if $toolbarState;
isnt($toolbar, undef, 'getToolbar method returns something other than undef when _toolbarState is not set') unless $toolbarState;
$snippet->toggleToolbar;
}
# Rudimentry test of the view method
my $output = $snippet->view;