File: hasFeature.t

package info (click to toggle)
libcss-dom-perl 0.17-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,044 kB
  • sloc: perl: 7,310; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl -T

use strict; use warnings;

use Test::More tests => 24;

use CSS::DOM;
my $o = new CSS::DOM;
my $c = 'CSS::DOM';

for (qw/css2 cSs2 stylesheets stYleSHeEts/) {
	ok!$c->hasFeature($_ => '1.0'), qq'class->hasFeature("$_","1.0")';
	ok $c->hasFeature($_ => '2.0'), qq'class->hasFeature("$_","2.0")';
	ok $c->hasFeature($_),          qq'class->hasFeature("$_")';
	ok!$o->hasFeature($_ => '1.0'), qq'\$obj->hasFeature("$_","1.0")';
	ok $o->hasFeature($_ => '2.0'), qq'\$obj->hasFeature("$_","2.0")';
	ok $o->hasFeature($_),          qq'\$obj->hasFeature("$_")';
}