1 |
#!/usr/bin/perl |
#!/usr/bin/perl |
2 |
use strict; |
use strict; |
3 |
use Test; |
use Test; |
4 |
BEGIN { plan tests => 55 } |
BEGIN { plan tests => 61 } |
5 |
|
|
6 |
require Message::DOM::DOMImplementation; |
require Message::DOM::DOMImplementation; |
7 |
use Message::Util::Error; |
use Message::Util::Error; |
139 |
'Element->attributes get_named_item get_attr_node'; |
'Element->attributes get_named_item get_attr_node'; |
140 |
} |
} |
141 |
|
|
142 |
|
## |schemaTypeInfo| |
143 |
|
{ |
144 |
|
my $el = $doc->create_element ('el'); |
145 |
|
$el->owner_document->dom_config->set_parameter ('schema-type' => undef); |
146 |
|
my $sti = $el->schema_type_info; |
147 |
|
ok UNIVERSAL::isa ($sti, 'Message::IF::TypeInfo') ? 1 : 0, 1, 'sti if [1]'; |
148 |
|
ok $sti->type_name, undef, 'sti type_name [1]'; |
149 |
|
ok $sti->type_namespace, undef, 'sti type_namespace [1]'; |
150 |
|
} |
151 |
|
{ |
152 |
|
my $el = $doc->create_element ('el'); |
153 |
|
$el->owner_document->dom_config->set_parameter |
154 |
|
('schema-type' => q<http://www.w3.org/TR/REC-xml>); |
155 |
|
my $sti = $el->schema_type_info; |
156 |
|
ok UNIVERSAL::isa ($sti, 'Message::IF::TypeInfo') ? 1 : 0, 1, 'sti if [2]'; |
157 |
|
ok $sti->type_name, undef, 'sti type_name [2]'; |
158 |
|
ok $sti->type_namespace, undef, 'sti type_namespace [2]'; |
159 |
|
} |
160 |
|
|
161 |
=head1 LICENSE |
=head1 LICENSE |
162 |
|
|
163 |
Copyright 2007 Wakaba <w@suika.fam.cx> |
Copyright 2007 Wakaba <w@suika.fam.cx> |