Skip to content

Commit

Permalink
Adjusted tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabacman committed Apr 18, 2021
1 parent 944ddda commit 02ff9cf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion source/Willow-Core-Tests/CheckboxWebViewTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CheckboxWebViewTest >> testIdentifierOn [

self
assert: html
equals: '<input checked name="2" id="checkbox-id1" type="checkbox"/><input name="3" type="hidden"/>'
equals: '<input checked name="2" id="checkbox-id1" type="checkbox"/><input name="4" type="hidden"/>'
]

{ #category : #'tests-configuring' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ CombinedWebInteractionInterpreterTest >> testShowWhileCallingServerToRender [
self
assert: html
equals:
'<button id="button-id3" type="button">Ok</button><button id="button-id5" type="button">Cancel</button><div id="container-id1"></div><script type="text/javascript">$("#button-id3").click(function(event){$("#container-id1").html("Loading...");Willow.callServer({"url":"/","data":"2"})});$("#button-id5").click(function(event){$("#container-id1").html("Loading...");Willow.callServer({"url":"/","data":"4"})});</script>'
'<button id="button-id3" type="button">Ok</button><button id="button-id6" type="button">Cancel</button><div id="container-id1"></div><script type="text/javascript">$("#button-id3").click(function(event){$("#container-id1").html("Loading...");Willow.callServer({"url":"/","data":"2"})});$("#button-id6").click(function(event){$("#container-id1").html("Loading...");Willow.callServer({"url":"/","data":"5"})});</script>'
]

{ #category : #'tests - Configuring - Serialization' }
Expand Down Expand Up @@ -869,7 +869,7 @@ CombinedWebInteractionInterpreterTest >> testToggleCssClassOn [
self
assert: html
equals:
'<button id="button-id2" type="button">Ok</button><button id="button-id3" type="button">Cancel</button><script type="text/javascript">$("#button-id2").click(function(event){$("#container-id1").toggleClass("willow")});$("#button-id3").click(function(event){$("#container-id1").toggleClass("willow")});</script>'
'<button id="button-id2" type="button">Ok</button><button id="button-id4" type="button">Cancel</button><script type="text/javascript">$("#button-id2").click(function(event){$("#container-id1").toggleClass("willow")});$("#button-id4").click(function(event){$("#container-id1").toggleClass("willow")});</script>'
]

{ #category : #'tests - Configuring - CSS' }
Expand Down Expand Up @@ -918,7 +918,7 @@ CombinedWebInteractionInterpreterTest >> testTransformInto [
self
assert: html
equals:
'<button id="button-id2" type="button">Ok</button><button id="button-id3" type="button">Cancel</button><div id="container-id1"></div><script type="text/javascript">$("#button-id2").click(function(event){$("#container-id1").html("Loading...")});$("#button-id3").click(function(event){$("#container-id1").html("Loading...")});</script>'
'<button id="button-id2" type="button">Ok</button><button id="button-id4" type="button">Cancel</button><div id="container-id1"></div><script type="text/javascript">$("#button-id2").click(function(event){$("#container-id1").html("Loading...")});$("#button-id4").click(function(event){$("#container-id1").html("Loading...")});</script>'
]

{ #category : #'tests - Configuring - CSS' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ MultipleSelectionListBoxWebViewTest >> testIdentifierOn [

self
assert: html
equals: '<select name="2" id="list-box-id1" multiple></select><input name="3" type="hidden"/>'
equals: '<select name="2" id="list-box-id1" multiple></select><input name="4" type="hidden"/>'
]

{ #category : #'tests-Multiple Selection-API' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ PeriodicallyRenderedWebViewTest >> testScriptToRefreshAndRenderContentOn [
self
assert: html
equals:
'<div id="id2"></div><script type="text/javascript">$("#id2").html("Count: 2<br/><script type=\"text/javascript\">$.ajax({\"url\":\"/\",\"data\":\"1\"});</script>");</script>'
'<div id="id3"></div><script type="text/javascript">$("#id3").html("Count: 2<br/><script type=\"text/javascript\">$.ajax({\"url\":\"/\",\"data\":\"2\"});</script>");</script>'
]
2 changes: 1 addition & 1 deletion source/Willow-Core-Tests/RenderingCommandTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RenderingCommandTest >> testModelLoadingInstructions [
self
assert: html
equals:
'<a id="id2"></a><script type="text/javascript">$("#id2").click(function(){$("#container-id1").html("<span>Test</span>")});</script>'
'<a id="id3"></a><script type="text/javascript">$("#id3").click(function(){$("#container-id1").html("<span>Test</span>")});</script>'
]

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

0 comments on commit 02ff9cf

Please sign in to comment.