/[suikacvs]/messaging/manakai/t/DOM-DOMImplementationSource.t
Suika

Contents of /messaging/manakai/t/DOM-DOMImplementationSource.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sat Jul 7 05:58:11 2007 UTC (17 years, 4 months ago) by wakaba
Branch: MAIN
CVS Tags: manakai-release-0-4-0, HEAD
File MIME type: application/x-troff
++ manakai/t/ChangeLog	7 Jul 2007 05:55:43 -0000
	* DOM-DOMImplementation.t: New tests for features are added.

	* DOM-DOMImplementationSource.t: New test script.

2007-07-07  Wakaba  <wakaba@suika.fam.cx>

++ manakai/lib/Message/DOM/ChangeLog	7 Jul 2007 05:58:02 -0000
	* DOMImplementation.pm (new): New method name for |____new|.
	It will be defined in the DOM Perl Binding specification
	as part of |DOMImplementation| interface.
	($HasFeature): Defined for features support.
	(has_feature, get_feature): Implemented.

	* DOMStringList.pm: Don't load the |Message::DOM::DOMException|
	module unless necessary.
	(___report_error): Removed since it is not used in fact.

	* DOMImplementationList.pm, DOMImplementationSource.pm,
	DOMImplementationRegistry.pm: New modules.

2007-07-07  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1 #!/usr/bin/perl
2     use strict;
3     use Test;
4     BEGIN { plan tests => 24 }
5    
6     require Message::DOM::DOMImplementationSource;
7    
8     my $source = 'Message::DOM::DOMImplementationSource';
9    
10     for (
11     [undef, 1, 'undef'],
12     ['', 1, 'empty'],
13     [{core => '3.0'}, 1, '{core=>3.0}'],
14     [{Core => '3.0'}, 1, '{Core=>3.0}'],
15     [{Core => ''}, 1, '{Core=>}'],
16     [{Core => undef}, 1, '{Core=>undef}'],
17     [{Core => ['3.0']}, 1, '{Core=>[3.0]}'],
18     ['Core 3.0', 1, 'Core 3.0'],
19     [{Core => '3.0', xml => '3.0'}, 1, '{Core=>3.0,xml=>3.0}'],
20     ['Core 3.0 XML 3.0', 1, 'Core 3.0 XML 3.0'],
21     ['Core 3.0 XML', 1, 'Core 3.0 XML'],
22     ['no-such-feature', 0, 'no-such-feature'],
23     ) {
24     my $dom = $source->get_dom_implementation ($_->[0]);
25     ok defined $dom ? 1 : 0, $_->[1], 'get ' . $_->[2];
26     my $list = $source->get_dom_implementation_list ($_->[0]);
27     ok 0+@$list, $_->[1] ? 1 : 0, 'get list ' . $_->[2];
28     }
29    
30     =head1 LICENSE
31    
32     Copyright 2007 Wakaba <w@suika.fam.cx>
33    
34     This program is free software; you can redistribute it and/or
35     modify it under the same terms as Perl itself.
36    
37     =cut
38    
39     ## $Date: 2007/06/17 13:37:42 $

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24