Skip to content

Commit

Permalink
Merge pull request #131 from ba-st/improved-seaside-encoding
Browse files Browse the repository at this point in the history
Improved seaside encoding
  • Loading branch information
mtabacman authored Jan 2, 2025
2 parents f8c2bf4 + 0d57cfb commit 5d02f51
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .project
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
'srcDirectory' : 'source'
}
'srcDirectory' : 'source',
'tags': [ 'Buenos Aires Smalltalk' ]
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ BootstrapPopoverTest >> testTemplateForBootstrap3 [
self
assert: html
equals:
'<div id="id1"></div><script type="text/javascript">$("#id1").popover({"template":"<div class=\"popover\" role=\"tooltip\"><div class=\"arrow\"><\/div><h3 class=\"popover-title\"><\/h3><div class=\"popover-content\"><span class=\"glyphicon glyphicon-menu-up\"><\/span><\/div><\/div>"});</script>'
'<div id="id1"></div><script type="text/javascript">$("#id1").popover({"template":"<div class=\"popover\" role=\"tooltip\"><div class=\"arrow\"></div><h3 class=\"popover-title\"></h3><div class=\"popover-content\"><span class=\"glyphicon glyphicon-menu-up\"></span></div></div>"});</script>'
]

{ #category : '*Willow-Bootstrap-3-Tests' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ BootstrapTooltipTest >> testTemplateForBootstrap3 [
self
assert: html
equals:
'<div id="id1"></div><script type="text/javascript">$("#id1").tooltip({"template":"<div class=\"tooltip\" role=\"tooltip\"><div class=\"tooltip-arrow\"><\/div><div class=\"tooltip-inner\"><span class=\"glyphicon glyphicon-menu-up\"><\/span><\/div><\/div>"});</script>'
'<div id="id1"></div><script type="text/javascript">$("#id1").tooltip({"template":"<div class=\"tooltip\" role=\"tooltip\"><div class=\"tooltip-arrow\"></div><div class=\"tooltip-inner\"><span class=\"glyphicon glyphicon-menu-up\"></span></div></div>"});</script>'
]

{ #category : '*Willow-Bootstrap-3-Tests' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ BootstrapPopoverTest >> testTemplateForBootstrap4 [
self
assert: html
equals:
'<div id="id1"></div><script type="text/javascript">$("#id1").popover({"template":"<div class=\"popover\" role=\"tooltip\"><div class=\"arrow\"><\/div><h3 class=\"popover-header\"><\/h3><div class=\"popover-body\">Body<\/div><\/div>"});</script>'
'<div id="id1"></div><script type="text/javascript">$("#id1").popover({"template":"<div class=\"popover\" role=\"tooltip\"><div class=\"arrow\"></div><h3 class=\"popover-header\"></h3><div class=\"popover-body\">Body</div></div>"});</script>'
]

{ #category : '*Willow-Bootstrap-4-Tests' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ BootstrapTooltipTest >> testTemplateForBootstrap4 [
self
assert: html
equals:
'<div id="id1"></div><script type="text/javascript">$("#id1").tooltip({"template":"<div class=\"tooltip\" role=\"tooltip\"><div class=\"arrow\"><\/div><div class=\"tooltip-inner\">Help!<\/div><\/div>"});</script>'
'<div id="id1"></div><script type="text/javascript">$("#id1").tooltip({"template":"<div class=\"tooltip\" role=\"tooltip\"><div class=\"arrow\"></div><div class=\"tooltip-inner\">Help!</div></div>"});</script>'
]

{ #category : '*Willow-Bootstrap-4-Tests' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ BootstrapDatepickerTemplateTest >> testAsJavascript [
assert: ( ( BootstrapDatepickerTemplate context: self renderContext )
leftArrow: [ :canvas | canvas span: '<' ]
rightArrow: '>' )
equals: '{"leftArrow":"<span>&lt;<\/span>","rightArrow":"&gt;"}'
equals: '{"leftArrow":"<span>&lt;</span>","rightArrow":"&gt;"}'
]
4 changes: 2 additions & 2 deletions source/Willow-Bootstrap-Tests/BootstrapPopoverTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ BootstrapPopoverTest >> testHtmlContent [
self
assert: html
equals:
'<div id="id1"></div><script type="text/javascript">$("#id1").popover({"html":true,"content":"<div class=\"container\">A more complex rendering<\/div>"});</script>'
'<div id="id1"></div><script type="text/javascript">$("#id1").popover({"html":true,"content":"<div class=\"container\">A more complex rendering</div>"});</script>'
]

{ #category : 'tests-Options' }
Expand All @@ -125,7 +125,7 @@ BootstrapPopoverTest >> testHtmlTitle [
self
assert: html
equals:
'<div id="id1"></div><script type="text/javascript">$("#id1").popover({"html":true,"title":"<div class=\"container\">A complex title<\/div>"});</script>'
'<div id="id1"></div><script type="text/javascript">$("#id1").popover({"html":true,"title":"<div class=\"container\">A complex title</div>"});</script>'
]

{ #category : 'tests-Events' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ BootstrapTooltipTest >> testHtmlTitle [
self
assert: html
equals:
'<div id="id1"></div><script type="text/javascript">$("#id1").tooltip({"html":true,"title":"<div class=\"container\">A complex tooltip<\/div>"});</script>'
'<div id="id1"></div><script type="text/javascript">$("#id1").tooltip({"html":true,"title":"<div class=\"container\">A complex tooltip</div>"});</script>'
]

{ #category : 'tests-Events' }
Expand Down

0 comments on commit 5d02f51

Please sign in to comment.