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
t/03_Options_Callback.t view on Meta::CPAN
is($cb, 1, "-popup$type called, even when there are no items");
$cb = 0;
my $button = $jcb->Subwidget('Button');
$button->eventGenerate('<ButtonPress-1>');
$jcb->hidePopup;
$mw->update;
is($cb, 1, "-popup$type called, even when there are no items");
$cb = 0;
## Add one item to the combobox
$jcb->addItem("one");
$jcb->showPopup;
is($cb, 1, "-popup$type - configured, items, popup invisible");
$cb = 0;
$jcb->showPopup;
$jcb->hidePopup;
is($cb, 1, "-popup$type not called when popup is visible");
$cb = 0;
( run in 0.815 second using v1.01-cache-2.11-cpan-59e3e3084b8 )