Make test pass
[sdlgit/SDL_perl.git] / t / core_surface.t
CommitLineData
b7ed9095 1#!perl -w
2# Copyright (C) 2009 kthakore
3#
4# Spec tests for SDL::Surface
5#
6
7BEGIN {
8 unshift @INC, 'blib/lib','blib/arch';
9 }
10
11use strict;
12use SDL;
13use SDL::Config;
14use SDL::Surface;
15use SDL::App;
16use SDL::Rect;
17use SDL::Color;
18use Test::More;
19
20plan (tests => 2 );
21
22
23my $app = SDL::App->new(-title => "Test", -width => 640, -height => 480, -init => SDL_INIT_VIDEO);
24
25pass 'did this pass';
26
27my $rect = SDL::Rect->new(0,0, $app->w, $app->h);
28
29
30 my $blue = SDL::Color->new(
31 0x00,
32 0x00,
33 0xff,
34 );
35
36$app->fill_rect($rect,$blue);
37
38
5ae1d2ee 39diag('This is in surface : '.SDL::Surface::get_pixels($app));
b7ed9095 40
41pass 'did this pass';
42