Parent Directory | Revision Log
++ manakai/t/ChangeLog 15 Jun 2007 14:31:27 -0000 2007-06-15 Wakaba <wakaba@suika.fam.cx> * DOM-Node.t: New test. 2007-06-15 Wakaba <wakaba@suika.fam.cx> * DOM-Document.t: New test. ++ manakai/lib/Message/DOM/ChangeLog 15 Jun 2007 14:32:37 -0000 2007-06-15 Wakaba <wakaba@suika.fam.cx> * ProcessingInstruction.pm, EntityReference.pm, CDATASection, DocumentFragment.pm, DOMDocument.pm, Entity.pm, ElementTypeDefinition.pm, AttributeDefinition.pm, DocumentType.pm, DOMElement.pm, Attr.pm, CharacterData.pm, Text.pm, Comment.pm (node_name, node_value, node_type): Implemented.
1 | #!/usr/bin/perl |
2 | use strict; |
3 | use Test; |
4 | BEGIN { plan tests => 4 } |
5 | |
6 | require Message::DOM::DOMImplementation; |
7 | |
8 | ## TODO: |create_document| tests |
9 | |
10 | my $dom = Message::DOM::DOMImplementation->____new; |
11 | my $doc = $dom->create_document; |
12 | |
13 | ## AUTOLOAD test |
14 | ok $doc->can ('create_element_ns'); |
15 | my $el = $doc->create_element_ns (undef, 'test'); |
16 | ok UNIVERSAL::isa ($el, 'Message::IF::Element'); |
17 | |
18 | ok $doc->can ('no_such_method') ? 1 : 0, 0; |
19 | my $something_called = 0; |
20 | eval { |
21 | $doc->no_such_method; |
22 | $something_called = 1; |
23 | }; |
24 | ok $something_called, 0; |
25 | |
26 | ## NOTE: Tests for |create_*| methods found in each module's test file. |
27 | |
28 | my $impl = $doc->implementation; |
29 | ok UNIVERSAL::isa ($impl, 'Message::IF::DOMImplementation') ? 1 : 0, 1; |
30 | |
31 | ## License: Public Domain. |
32 | ## $Date: 2007/06/13 12:04:51 $ |
admin@suikawiki.org | ViewVC Help |
Powered by ViewVC 1.1.24 |