-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
42 additions
and
60 deletions.
There are no files selected for viewing
8 changes: 3 additions & 5 deletions
8
...ory/Seaside-Tests-Slime.package/WASlimeTest.class/instance/testCallSuperImplementation.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
.../Seaside-Tests-Slime.package/WASlimeTest.class/instance/testChangesStateWhileRendering.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
...Seaside-Tests-Slime.package/WASlimeTest.class/instance/testExtractCallbackCodeToMethod.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
tests-parsetree | ||
testExtractCallbackCodeToMethod | ||
| class | | ||
class := self | ||
defineClass: #WASlimeMockComponent | ||
superclass: #WAComponent. | ||
class | ||
class := self defineSubClassOf: #WAComponent. | ||
self | ||
compile: 'renderInvalidOn: html | ||
html anchor | ||
callback: [ self foo. self bar ]; | ||
with: 1' | ||
classified: #(rendering). | ||
class | ||
in: class. | ||
self | ||
compile: 'renderValidOn: html | ||
html anchor | ||
callback: [ self foo ]; | ||
with: 1' | ||
classified: #(rendering). | ||
in: class. | ||
self | ||
runRule: WAExtractCallbackCodeToMethodRule | ||
selectors: #(renderInvalidOn:) |
8 changes: 3 additions & 5 deletions
8
...sitory/Seaside-Tests-Slime.package/WASlimeTest.class/instance/testSendsRenderContentOn.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
tests-parsetree | ||
testSendsRenderContentOn | ||
| class | | ||
class := self | ||
defineClass: #WASlimeMockComponent | ||
superclass: #WAComponent. | ||
class | ||
class := self defineSubClassOf: #WAComponent. | ||
self | ||
compile: 'invalid self renderContentOn: nil' | ||
classified: #(rendering). | ||
in: class. | ||
self | ||
runRule: WASendsRenderContentOnRule | ||
selectors: #(invalid) |
12 changes: 5 additions & 7 deletions
12
.../Seaside-Tests-Slime.package/WASlimeTest.class/instance/testSequencedAsynchronousCalls.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
tests-parsetree | ||
testSequencedAsynchronousCalls | ||
| class | | ||
class := self | ||
defineClass: #WASlimeMockComponent | ||
superclass: #WAComponent. | ||
class | ||
class := self defineSubClassOf: #WAComponent. | ||
self | ||
compile: 'renderContent1On: html | ||
html div | ||
onClick: (html jQuery ajax callback: [ ]) , (html jQuery ajax serializeForm); | ||
with: ''Click me''' | ||
classified: #(rendering). | ||
class | ||
in: class. | ||
self | ||
compile: 'renderContent2On: html | ||
html div | ||
onClick: (html jQuery ajax serializeForm; callback: [ ]) , (html jQuery effect bounce); | ||
with: ''Click me''' | ||
classified: #(rendering). | ||
in: class. | ||
self | ||
runRule: WASequencedAsynchronousCallsRule | ||
selectors: #(renderContent1On: renderContent2On:) |
28 changes: 13 additions & 15 deletions
28
...aside-Tests-Slime.package/WASlimeTest.class/instance/testUnnecessaryBlockPassedToBrush.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,25 @@ | ||
tests-parsetree | ||
testUnnecessaryBlockPassedToBrush | ||
| class | | ||
class := self | ||
defineClass: #WASlimeMockComponent | ||
superclass: #WAComponent. | ||
class | ||
class := self defineSubClassOf: #WAComponent. | ||
self | ||
compile: 'renderContent01On: html html div: [ ]' | ||
classified: #(rendering). | ||
class | ||
in: class. | ||
self | ||
compile: 'renderContent02On: html html div: [ html text: 2 ]' | ||
classified: #(rendering). | ||
class | ||
in: class. | ||
self | ||
compile: 'renderContent03On: html html div: [ html render: 3 ]' | ||
classified: #(rendering). | ||
class | ||
in: class. | ||
self | ||
compile: 'renderContent04On: html html div class: #foo; with: [ ]' | ||
classified: #(rendering). | ||
class | ||
in: class. | ||
self | ||
compile: 'renderContent05On: html html div class: #foo; with: [ html text: 5 ]' | ||
classified: #(rendering). | ||
class | ||
in: class. | ||
self | ||
compile: 'renderContent06On: html html div class: #foo; with: [ html render: 6 ]' | ||
classified: #(rendering). | ||
in: class. | ||
self | ||
runRule: WAUnnecessaryBlockPassedToBrushRule | ||
selectors: #(renderContent01On: renderContent02On: renderContent03On: renderContent04On: renderContent05On: renderContent06On:) |
8 changes: 3 additions & 5 deletions
8
.../Seaside-Tests-Slime.package/WASlimeTest.class/instance/testUnnecessaryWithSentToBrush.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
tests-parsetree | ||
testUnnecessaryWithSentToBrush | ||
| class | | ||
class := self | ||
defineClass: #WASlimeMockComponent | ||
superclass: #WAComponent. | ||
class | ||
class := self defineSubClassOf: #WAComponent. | ||
self | ||
compile: 'renderContentOn: html html div with: 123' | ||
classified: #(rendering). | ||
in: class. | ||
self | ||
runRule: WAUnnecessaryWithSentToBrushRule | ||
selectors: #(renderContentOn:) |
8 changes: 3 additions & 5 deletions
8
repository/Seaside-Tests-Slime.package/WASlimeTest.class/instance/testUsesWrongRenderer.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
tests-parsetree | ||
testUsesWrongRenderer | ||
| class | | ||
class := self | ||
defineClass: #WASlimeMockComponent | ||
superclass: #WAComponent. | ||
class | ||
class := self defineSubClassOf: #WAComponent. | ||
self | ||
compile: 'renderContentOn: html | ||
html updater callback: [ :r | html div ]' | ||
classified: #(rendering). | ||
in: class. | ||
self | ||
runRule: WAUsesWrongRendererRule | ||
selectors: #(renderContentOn:) |
12 changes: 5 additions & 7 deletions
12
...ide-Tests-Slime.package/WASlimeTest.class/instance/testWithHasToBeLastMessageInCascade.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
tests-parsetree | ||
testWithHasToBeLastMessageInCascade | ||
| class | | ||
class := self | ||
defineClass: #WASlimeMockComponent | ||
superclass: #WAComponent. | ||
class | ||
class := self defineSubClassOf: #WAComponent. | ||
self | ||
compile: 'renderContent01On: html | ||
html div | ||
with: ''foo''; | ||
class: ''bar''' | ||
classified: #(rendering). | ||
class | ||
in: class. | ||
self | ||
compile: 'renderContent02On: html | ||
html div | ||
id: ''zork''; | ||
with: ''foo''; | ||
class: ''bar''' | ||
classified: #(rendering). | ||
in: class. | ||
self | ||
runRule: WAWithHasToBeLastMessageInCascadeRule | ||
selectors: #(renderContent01On: renderContent02On:) |