Tk-JComboBox

 view release on metacpan or  search on metacpan

t/02_Options_Basic.t  view on Meta::CPAN

#! /usr/local/bin/perl

#################################################################
## Name: 02_Options_Basic.t
## 
## Purpose: Tests all Basic operations - those that implement
##  "standard" Tk options, or redefine them. There are a few 
##  additional ones that configure the appearance of the combobox.
##
## Tested Options: (also tests -mode)
##  -arrowbitmap
##  -arrowimage
##  -background
##  -borderwidth 
##  -cursor
##  -entrybackground
##  -entrywidth
##  -font
##  -foreground
##  -gap
##  -highlightcolor
##  -highlightbackground
##  -listwidth
##  -pady
##  -selectbackground
##  -selectforeground
##  -selectborderwidth
##  -takefocus
##  -textvariable
##
## NOTE: When creating new tests, be careful not to create a new 
## MainWindow for each Test. I find that it tends to interfere 
## with event generation (if you generate events for tests). 
## Creating a Test subroutine for each test tends to make it 
## easier to comment out tests or move them between modules. Also 
## it makes it easier to police variable use, so that a variable 
## used in one test does not inadvertantly affect another.
################################################################
use Carp;
use strict;

use Tk;
use Tk::Font;
use Tk::JComboBox;
use Test::More tests => 205;

my $mw = MainWindow->new();

my $fontName = "Fixed";
$fontName = "Arial" if $Tk::platform =~ /Win32/;

####################################################
## Appearance-related Options
####################################################

#####################
## -arrowbitmap (2)
#####################
diag "\n\nTest arrowbitmap:\n";
TestArrowbitmap('editable');
TestArrowbitmap('readonly');

#####################
## -arrowimage (3)
#####################
diag "\nTest arrowimage\n";
TestArrowimage('editable');
TestArrowimage('readonly');



( run in 0.814 second using v1.01-cache-2.11-cpan-59e3e3084b8 )