WAComponent decoration not initializing.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

WAComponent decoration not initializing.

Andre Siebrits

Hi,

 

We upgraded from Seaside 2.7 to Seaside 2.8 on Squeak3.9-win32(Squeak3.9-7067) .

 

I downloaded the latest versions of Seaside 2.8 (Seaside2.8a1-kph.415.mcz) and SeasideTesting (SeasideTesting-R1.4-cds.5.mcz).

 

I loaded the packages into  our Squeak 3.9 working environment via Monticello.

 

I  need to test the SeasideTesting package on the unit tests we have created for a  project and which are all running successfully in Seaside 2.7.

 

·         I found the following: It seems the WAComponent decoration attribute is not initialized even though there is an initializeDecoration method  

In the initialize method of the instance. I noticed that the decoration attribute used to be lazy-initialized in the reference version of Seaside2.8 (Seaside2.8a1-pmm.212.mcz). I re-introduced the lazy-initializer and the tests ran successfully.

 

·         There are references to the removed class WARenderLoopConfiguration from within SeasideTesting (SCComponentTestCase.newApplicationWithRootClass:initializeWith: & SCComponentTestCase.newApplicationWithRootClass:createWith: etc.) I replaced the references with  WARenderConfiguration and the tests ran.

 

Am I doing the right thing here?

 

Regards,

 

 

Andre Siebrits

FinWorks

[hidden email]

 


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WAComponent decoration not initializing.

Lukas Renggli
> Am I doing the right thing here?

If you override #initialize you always have to call

     super initialize

This was an exception in Seaside 2.7, we made that uniform with the
rest of the framework in 2.8.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WAComponent decoration not initializing.

cdavidshaffer
SCRunnerTask overrode #initializeDecoration so as not to call the super
method.  This was because the initialization of decorations in Seaside
<= 2.7 required a session (for backtracking) but no such session is
available at the time this task is created.  There are several reasons
for this not the least of which is that SeasideTesting lets you create
the component under test in the context of your test case (rather than
the context of the running Seaside application).  For Seaside 2.8 this
hack may not needed since this automatic backtracking registration
doesn't occur so your fix is probably correct.  The tests are all green
except those which depend on WAAllTests so that's a good sign.

David

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: WAComponent decoration not initializing.

Michel Bany

On 14 Jul 2007, at 17:20 , David Shaffer wrote:


> The tests are all green except those which depend on WAAllTests so  
> that's a good sign.
>

Seaside2.8a1-mb.420 has all the id attributes and accessors needed by  
SeasideTesting.

All tests are green in SeasideTesting-R1.5-mb.2 (needs Seaside2.8a1-
mb.420)

HTH
Michel.



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside