### ----------------------------------------------------
### -- Gnome::Gtk3
### -- Licenses: Artistic-2.0
### -- Authors: Marcel Timmerman
### -- File: t/TextTag.rakutest
### ----------------------------------------------------
use v6;
use NativeCall;
use Test;

use Gnome::Gtk3::TextTag:api<1>;
use Gnome::Gtk3::TextTagTable:api<1>;
#use Gnome::Gtk3::TextBuffer:api<1>;
#use Gnome::Gtk3::TextIter:api<1>;

use Gnome::N::X:api<1>;
#Gnome::N::debug(:on);

#-------------------------------------------------------------------------------
my Gnome::Gtk3::TextTag $tt;
#-------------------------------------------------------------------------------
subtest 'ISA test', {
   $tt .= new;
  isa-ok $tt, Gnome::Gtk3::TextTag, '.new';

  $tt .= new(:tag-name<my-very-own-tag-name>);
  isa-ok $tt, Gnome::Gtk3::TextTag, '.new(:tag-name)';
}

#-------------------------------------------------------------------------------
unless %*ENV<raku_test_all>:exists {
  done-testing;
  exit;
}

#-------------------------------------------------------------------------------
subtest 'Manipulations', {

  my Gnome::Gtk3::TextTagTable $ttt .= new;
  $ttt.gtk-text-tag-table-add($tt);
  my Gnome::Gtk3::TextTag $tt2 .= new(:tag-name<my-second-tag-name>);
  $ttt.gtk-text-tag-table-add($tt2);

  is $tt.get-priority, 0, '.get-priority()';

  $tt.set-priority(1);
  is $tt.get-priority, 1, '.set-priority()';
}


#`{{
#-------------------------------------------------------------------------------
subtest 'Inherit ...', {
}

#-------------------------------------------------------------------------------
subtest 'Interface ...', {
}

#-------------------------------------------------------------------------------
subtest 'Properties ...', {
}

#-------------------------------------------------------------------------------
subtest 'Themes ...', {
}
}}


#-------------------------------------------------------------------------------
done-testing;


