diff _test/Test/Web/View.pm @ 263:0f59b2de72af

*fixed IMPL::DOM::Schema circular module references *modified IMPL::Object::Singleton, added auto-activation *code cleanups, docs
author sergey
date Wed, 09 Jan 2013 05:17:44 +0400
parents b8c724f6de36
children c6d0f889ef87
line wrap: on
line diff
--- a/_test/Test/Web/View.pm	Sat Dec 29 03:22:15 2012 +0400
+++ b/_test/Test/Web/View.pm	Wed Jan 09 05:17:44 2013 +0400
@@ -131,8 +131,8 @@
     
     assert(defined $factory);
     
-    
-    assert($factory->context->stash != $doc->context->stash);
+    # control factory shares document scope to perform an initialization on demand
+    assert($factory->context->stash == $doc->context->stash);
     
     assert($factory == $doc->RequireControl('My/Org/Panel'), "Control should be loaded only once");
     
@@ -207,7 +207,7 @@
         my $doc = $loader->document('simple');
         my $factory = $doc->RequireControl('My/Org/Panel');
         my $ctl = $doc->childNodes($factory->new('information', { visualClass => 'complex' }) );        
-    });
+    },'dump');
     
     $loader->template('complex');
     AssertMemoryLeak(sub {