Ignore:
Timestamp:
12/19/05 23:10:37 (19 years ago)
Author:
thauvin
Message:
  • use ObsData::Event to manage event
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/soft/ObsData/t/OR-03.t

    • Property cvs2svn:cvs-rev changed from 1.10 to 1.11
    r151 r168  
    11# $Id$ 
     2 
     3use strict; 
     4use warnings; 
    25 
    36use Test::More tests => 14; 
     
    3033            archivefile => 'ozone34.gz', 
    3134            interative_callback => sub { 
    32                 my ($self, $why, @args) = @_; 
    33                 $callbackwhy = $why; 
    34                 if ($why eq 'overwrite') { 
     35                my ($self, $event) = @_; 
     36                $callbackwhy = $event->id; 
     37                if ($callbackwhy eq 'overwrite') { 
    3538                    return 1; 
    3639                } else { 
    37                     return $self->default_checks($why, @args); 
     40                    return $self->default_choice($event); 
    3841                } 
    3942            }, 
     
    4952    ok($or->get_data_value('ozone34', 'BAR') eq 'BAR', "can get a value"); 
    5053 
    51     ok($or->do_continue('overwrite') eq 1, "Perform do_continue"); 
     54    ok($or->do_continue('overwrite', 'a', 'a') eq 1, "Perform do_continue"); 
    5255    ok($callbackwhy eq 'overwrite', "arg are properly passed to callback"); 
    5356    ok($or->list_archive, "Can list archive content"); 
Note: See TracChangeset for help on using the changeset viewer.