--- /dev/null
+$opt_c = Text::CSV_XS->new(
+{
+ binary => 1, sep_char => $opt_c, always_quote => 1,
+}
+);
+
+$c->Tk::bind(
+'<Control-f>' => sub {
+my ($c) = @_;
+my $e = $c->XEvent;
+itemsUnderArea $c;
+} );
+
+__PACKAGE__->load_components( qw(
+PK::Auto
+Core
+) );
#1 lop.lop
#2 switch_plain.def
#3 switch_plain.switch_plain
+#4 sot.def
+#5 sot.sot
# To locate test #13 you can search for its name or the string '#13'
$rparams = {
'def' => "",
'lop' => "-nlop",
+ 'sot' => "-sot -sct",
'switch_plain' => "-nola",
};
|| 'text/plain' );
----------
+ 'sot' => <<'----------',
+$opt_c = Text::CSV_XS->new(
+{
+ binary => 1, sep_char => $opt_c, always_quote => 1,
+}
+);
+
+$c->Tk::bind(
+'<Control-f>' => sub {
+my ($c) = @_;
+my $e = $c->XEvent;
+itemsUnderArea $c;
+} );
+
+__PACKAGE__->load_components( qw(
+PK::Auto
+Core
+) );
+----------
+
'switch_plain' => <<'----------',
# run with -nola to keep default from outdenting
use Switch::Plain;
: 'not ok';
#3...........
},
+
+ 'sot.def' => {
+ source => "sot",
+ params => "def",
+ expect => <<'#4...........',
+$opt_c = Text::CSV_XS->new(
+ {
+ binary => 1,
+ sep_char => $opt_c,
+ always_quote => 1,
+ }
+);
+
+$c->Tk::bind(
+ '<Control-f>' => sub {
+ my ($c) = @_;
+ my $e = $c->XEvent;
+ itemsUnderArea $c;
+ }
+);
+
+__PACKAGE__->load_components(
+ qw(
+ PK::Auto
+ Core
+ )
+);
+#4...........
+ },
+
+ 'sot.sot' => {
+ source => "sot",
+ params => "sot",
+ expect => <<'#5...........',
+$opt_c = Text::CSV_XS->new( {
+ binary => 1,
+ sep_char => $opt_c,
+ always_quote => 1,
+} );
+
+$c->Tk::bind(
+ '<Control-f>' => sub {
+ my ($c) = @_;
+ my $e = $c->XEvent;
+ itemsUnderArea $c;
+ } );
+
+__PACKAGE__->load_components( qw(
+ PK::Auto
+ Core
+) );
+#5...........
+ },
};
my $ntests = 0 + keys %{$rtests};