comparison _test/Test/DOM/Navigator.pm @ 36:1828103371d0

DOM in works
author Sergey
date Fri, 20 Nov 2009 16:48:08 +0300
parents 7f00786f8210
children 16ada169ca75
comparison
equal deleted inserted replaced
35:f25d021780b3 36:1828103371d0
143 143
144 $navi->saveState; 144 $navi->saveState;
145 $navi->NavigateName('Node') or failed "Failed to navigate to a simple node"; 145 $navi->NavigateName('Node') or failed "Failed to navigate to a simple node";
146 $navi->restoreState; 146 $navi->restoreState;
147 147
148 failed "Can't navigate from simple node" if $navi->NavigateName('Property'); 148 failed "Can't navigate from simple node" if $navi->dosafe(sub { $navi->NavigateName('Property') || die } );
149 149
150 $navi->NavigateName('ComplexType') or failed "Failed to navigate to a complex node"; 150 $navi->NavigateName('ComplexType') or failed "Failed to navigate to a complex node";
151 $navi->NavigateName('NodeSet') or failed "Failed to navigate to NodeSet"; 151 $navi->NavigateName('NodeSet') or failed "Failed to navigate to NodeSet";
152 $navi->SchemaBack(); 152 $navi->SchemaBack();
153 $navi->NavigateName('NodeList') or failed "Failed to navigate to NodeList"; 153 $navi->NavigateName('NodeList') or failed "Failed to navigate to NodeList";