SCTestComponent4


SeasideTesting-Examples

Comment:



Hierarchy:

ProtoObject
Object
WAPresenter
WAComponent
SCTestComponent4

Summary:

instance variables:

firstSent secondSent thirdSent

methods:

instance class
accessing callbacks initialization seaside

Detail:

instance variables:

firstSent
secondSent
thirdSent

instance methods:

accessing
firstSent

	^firstSent
renderContentOn: html
 
	self firstSent
		ifFalse: [html
				anchorWithAction: [self sendFirst]
				text: 'first link'].
	html text: 'hello'.
	self secondSent
		ifFalse: [html cssId: 'second'.
			html
				anchorWithAction: [self sendSecond]
				text: 'second link'].
	self thirdSent
		ifFalse: [
			html cssId: 'third'.
			html
				anchorWithAction: [self sendThird]
				text: 'third link']
secondSent

	^secondSent
thirdSent

	^thirdSent

callbacks
sendFirst

	firstSent _ true
sendSecond

	secondSent _ true
sendThird

	thirdSent _ true.
	self answer: 1234

initialization
initialize

	super initialize.
	self session registerObjectForBacktracking: self.
	firstSent _ false.
	secondSent _ false.
	thirdSent _ false

class methods:

seaside
canBeRoot

	^true

^top


- made by Dandelion -