-
Notifications
You must be signed in to change notification settings - Fork 1
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
85 changed files
with
438 additions
and
70 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
source/Willow-Bootstrap-Tests.package/BootstrapCollapseTest.class/properties.json
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
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
2 changes: 1 addition & 1 deletion
2
source/Willow-Bootstrap-Tests.package/BootstrapConstantsTest.class/methodProperties.json
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,7 +1,7 @@ | ||
{ | ||
"instance" : { | ||
"testDataAPI" : "GabrielOmarCotelli 4/6/2017 17:19", | ||
"testRoles" : "GabrielOmarCotelli 4/4/2017 11:35" | ||
"testRoles" : "GabrielOmarCotelli 4/7/2017 17:11" | ||
}, | ||
"class" : { } | ||
} |
15 changes: 15 additions & 0 deletions
15
source/Willow-Bootstrap-Tests.package/BootstrapCssStylesTest.class/instance/testModal.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
tests | ||
testModal | ||
|
||
self | ||
assert: BootstrapCssStyles modal equals: 'modal'; | ||
assert: BootstrapCssStyles modalBackdrop equals: 'modal-backdrop'; | ||
assert: BootstrapCssStyles modalBody equals: 'modal-body'; | ||
assert: BootstrapCssStyles modalContent equals: 'modal-content'; | ||
assert: BootstrapCssStyles modalDialog equals: 'modal-dialog'; | ||
assert: BootstrapCssStyles modalFooter equals: 'modal-footer'; | ||
assert: BootstrapCssStyles modalHeader equals: 'modal-header'; | ||
assert: BootstrapCssStyles modalLarge equals: 'modal-lg'; | ||
assert: BootstrapCssStyles modalOpen equals: 'modal-open'; | ||
assert: BootstrapCssStyles modalSmall equals: 'modal-sm'; | ||
assert: BootstrapCssStyles modalTitle equals: 'modal-title' |
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
1 change: 1 addition & 0 deletions
1
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/README.md
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
A BootstrapModalTest is a test class for testing the behavior of BootstrapModal |
11 changes: 11 additions & 0 deletions
11
...-Bootstrap-Tests.package/BootstrapModalTest.class/instance/renderModalContentApplying..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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
private | ||
renderModalContentApplying: aBlock | ||
|
||
^ self | ||
renderUsing: [ :canvas | | ||
| div modal | | ||
|
||
div := canvas div class: BootstrapCssStyles modal. | ||
modal := canvas jQuery new bootstrapModal. | ||
aBlock value: modal. | ||
div script: modal ] |
10 changes: 10 additions & 0 deletions
10
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/instance/testBackdrop.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
tests-Options | ||
testBackdrop | ||
|
||
| html | | ||
|
||
html := self renderModalContentApplying: [ :modal | modal backdrop: BootstrapConstants static ]. | ||
|
||
self | ||
assert: html | ||
equals: '<div class="modal" id="id1"></div><script type="text/javascript">$("#id1").modal({"backdrop":"static"});</script>' |
10 changes: 10 additions & 0 deletions
10
...e/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/instance/testBackdropBoolean.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
tests-Options | ||
testBackdropBoolean | ||
|
||
| html | | ||
|
||
html := self renderModalContentApplying: [ :modal | modal backdrop: true ]. | ||
|
||
self | ||
assert: html | ||
equals: '<div class="modal" id="id1"></div><script type="text/javascript">$("#id1").modal({"backdrop":true});</script>' |
8 changes: 8 additions & 0 deletions
8
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/instance/testHide.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tests-Methods | ||
testHide | ||
|
||
| html | | ||
|
||
html := self renderModalContentApplying: [ :modal | modal hide ]. | ||
|
||
self assert: html equals: '<div class="modal" id="id1"></div><script type="text/javascript">$("#id1").modal("hide");</script>' |
8 changes: 8 additions & 0 deletions
8
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/instance/testOnHidden.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tests-Methods | ||
testOnHidden | ||
|
||
| html | | ||
|
||
html := self renderModalContentApplying: [ :modal | modal onHidden: JSFunction new ]. | ||
|
||
self assert: html equals: '<div class="modal" id="id1"></div><script type="text/javascript">$("#id1").modal().on("hidden.bs.modal",function(){});</script>' |
8 changes: 8 additions & 0 deletions
8
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/instance/testOnHide.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tests-Methods | ||
testOnHide | ||
|
||
| html | | ||
|
||
html := self renderModalContentApplying: [ :modal | modal onHide: JSFunction new ]. | ||
|
||
self assert: html equals: '<div class="modal" id="id1"></div><script type="text/javascript">$("#id1").modal().on("hide.bs.modal",function(){});</script>' |
8 changes: 8 additions & 0 deletions
8
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/instance/testOnShow.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tests-Methods | ||
testOnShow | ||
|
||
| html | | ||
|
||
html := self renderModalContentApplying: [ :modal | modal onShow: JSFunction new ]. | ||
|
||
self assert: html equals: '<div class="modal" id="id1"></div><script type="text/javascript">$("#id1").modal().on("show.bs.modal",function(){});</script>' |
8 changes: 8 additions & 0 deletions
8
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/instance/testOnShown.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tests-Methods | ||
testOnShown | ||
|
||
| html | | ||
|
||
html := self renderModalContentApplying: [ :modal | modal onShown: JSFunction new ]. | ||
|
||
self assert: html equals: '<div class="modal" id="id1"></div><script type="text/javascript">$("#id1").modal().on("shown.bs.modal",function(){});</script>' |
16 changes: 16 additions & 0 deletions
16
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/instance/testOptions.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
tests-Options | ||
testOptions | ||
|
||
| html | | ||
|
||
html := self | ||
renderModalContentApplying: [ :modal | | ||
modal | ||
backdrop: false; | ||
keyboard: false; | ||
show: true ]. | ||
|
||
self | ||
assert: html | ||
equals: | ||
'<div class="modal" id="id1"></div><script type="text/javascript">$("#id1").modal({"backdrop":false,"keyboard":false,"show":true});</script>' |
8 changes: 8 additions & 0 deletions
8
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/instance/testShow.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tests-Methods | ||
testShow | ||
|
||
| html | | ||
|
||
html := self renderModalContentApplying: [ :modal | modal show ]. | ||
|
||
self assert: html equals: '<div class="modal" id="id1"></div><script type="text/javascript">$("#id1").modal("show");</script>' |
8 changes: 8 additions & 0 deletions
8
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/instance/testToggle.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tests-Methods | ||
testToggle | ||
|
||
| html | | ||
|
||
html := self renderModalContentApplying: [ :modal | modal toggle ]. | ||
|
||
self assert: html equals: '<div class="modal" id="id1"></div><script type="text/javascript">$("#id1").modal("toggle");</script>' |
16 changes: 16 additions & 0 deletions
16
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/methodProperties.json
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"instance" : { | ||
"testOnShown" : "GabrielOmarCotelli 4/7/2017 17:04", | ||
"testHide" : "GabrielOmarCotelli 4/7/2017 16:57", | ||
"renderModalContentApplying:" : "GabrielOmarCotelli 4/7/2017 16:56", | ||
"testToggle" : "GabrielOmarCotelli 4/7/2017 16:58", | ||
"testOnHidden" : "GabrielOmarCotelli 4/7/2017 17:03", | ||
"testBackdrop" : "GabrielOmarCotelli 4/7/2017 16:59", | ||
"testBackdropBoolean" : "GabrielOmarCotelli 4/7/2017 17:00", | ||
"testShow" : "GabrielOmarCotelli 4/7/2017 16:58", | ||
"testOnShow" : "GabrielOmarCotelli 4/7/2017 17:03", | ||
"testOnHide" : "GabrielOmarCotelli 4/7/2017 17:03", | ||
"testOptions" : "GabrielOmarCotelli 4/7/2017 17:00" | ||
}, | ||
"class" : { } | ||
} |
11 changes: 11 additions & 0 deletions
11
source/Willow-Bootstrap-Tests.package/BootstrapModalTest.class/properties.json
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commentStamp" : "<historical>", | ||
"super" : "WillowTestCase", | ||
"category" : "Willow-Bootstrap-Tests-Plugins", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ ], | ||
"name" : "BootstrapModalTest", | ||
"type" : "normal" | ||
} |
2 changes: 1 addition & 1 deletion
2
source/Willow-Bootstrap-Tests.package/monticello.meta/categories.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,6 +1,6 @@ | ||
SystemOrganization addCategory: #'Willow-Bootstrap-Tests'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Frontend'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Libraries'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Plugin'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Plugins'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-Select'! | ||
SystemOrganization addCategory: 'Willow-Bootstrap-Tests-WebViews'! |
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
4 changes: 0 additions & 4 deletions
4
source/Willow-Bootstrap.package/BootstrapCollapse.class/instance/arguments.st
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
source/Willow-Bootstrap.package/BootstrapCollapse.class/instance/hide.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,4 +1,4 @@ | ||
Methods | ||
hide | ||
|
||
functionAsArgument := 'hide' | ||
functionName := 'hide' |
2 changes: 1 addition & 1 deletion
2
source/Willow-Bootstrap.package/BootstrapCollapse.class/instance/show.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,4 +1,4 @@ | ||
Methods | ||
show | ||
|
||
functionAsArgument := 'show' | ||
functionName := 'show' |
2 changes: 1 addition & 1 deletion
2
source/Willow-Bootstrap.package/BootstrapCollapse.class/instance/toggle.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,4 +1,4 @@ | ||
Methods | ||
toggle | ||
|
||
functionAsArgument := BootstrapConstants toggle | ||
functionName := BootstrapConstants toggle |
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
source/Willow-Bootstrap.package/BootstrapCollapse.class/properties.json
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 @@ | ||
{ | ||
"commentStamp" : "GabrielOmarCotelli 4/7/2017 10:45", | ||
"super" : "JQPlugin", | ||
"super" : "BootstrapPlugin", | ||
"category" : "Willow-Bootstrap-Plugins", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"functionAsArgument" | ||
], | ||
"instvars" : [ ], | ||
"name" : "BootstrapCollapse", | ||
"type" : "normal" | ||
} |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/backdrop.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Data-API | ||
backdrop | ||
|
||
^ 'backdrop' |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/dialog.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Roles | ||
dialog | ||
|
||
^ 'dialog' |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/document.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Roles | ||
document | ||
|
||
^ 'document' |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/hiddenModal.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Events | ||
hiddenModal | ||
|
||
^ 'hidden.bs.modal' |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/hideModal.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Events | ||
hideModal | ||
|
||
^ 'hide.bs.modal' |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/keyboard.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Data-API | ||
keyboard | ||
|
||
^ 'keyboard' |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/modal.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Data-API | ||
modal | ||
|
||
^ 'modal' |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/show.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Data-API | ||
show | ||
|
||
^ 'show' |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/showModal.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Events | ||
showModal | ||
|
||
^ 'show.bs.modal' |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/shownModal.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Events | ||
shownModal | ||
|
||
^ 'shown.bs.modal' |
4 changes: 4 additions & 0 deletions
4
source/Willow-Bootstrap.package/BootstrapConstants.class/class/static.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Data-API | ||
static | ||
|
||
^ 'static' |
Oops, something went wrong.