Skip to content

Commit

Permalink
Add a test for MDLMenuButtonWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Jul 3, 2018
1 parent 8ad61b9 commit 6713ad6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tests
testButtonContents
menu buttonContent: 'test'.
self assert: [ :html | menu renderButtonContentOn: html ] generates: 'test'.
menu buttonContent: [ :html | html mdlIcon: 'mood' ].
self assert: [ :html | menu renderButtonContentOn: html ] generates: '<i class="material-icons">mood</i>'
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests'!
SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Calendar'!
SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-List'!
SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Loading'!
SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Menu'!
SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Poll'!
SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Tab'!
SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Table'!
'!
SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Tab'!
SystemOrganization addCategory: #'Material-Design-Lite-Widgets-Tests-Table'!

0 comments on commit 6713ad6

Please sign in to comment.