use strict;
use warnings;
-use Clutter::TestHelper tests => 32;
+use Clutter::TestHelper tests => 30;
use Champlain ':coords';
is($tile->get_state(), 'init', "get_state() full tile");
is($tile->get_uri(), '', "get_uri() full tile");
is($tile->get_filename(), '', "get_filename() full tile");
- is($tile->get_actor(), undef, "get_actor() full tile");
+ isa_ok($tile->get_actor(), 'Clutter::Actor', "get_actor() full tile");
test_all_setters($tile);
}
is($tile->get_state(), 'init', "get_state() default tile");
is($tile->get_uri(), '', "get_uri() default tile");
is($tile->get_filename(), '', "get_filename() default tile");
- is($tile->get_actor(), undef, "get_actor() default tile");
+ isa_ok($tile->get_actor(), 'Clutter::Actor', "get_actor() default tile");
test_all_setters($tile);
}
$tile->set_uri('http://localhost/tile/2/100-250.png');
is($tile->get_uri(), 'http://localhost/tile/2/100-250.png', "set_uri()");
-
- my $actor = Clutter::Ex::DeadActor->new();
- $tile->set_actor($actor);
- is($tile->get_actor(), $actor, "set_actor()");
}
-
-
-#
-# An empty actor.
-#
-package Clutter::Ex::DeadActor;
-use Glib::Object::Subclass 'Clutter::Actor',;
-
-# This is a an empty actor. This class is needed because Clutter::Actor is an
-# abstract class.