Skip to content

Commit

Permalink
Merge pull request #202 from ba-st/201-adapt-UUID-assigner
Browse files Browse the repository at this point in the history
201 adapt UUID assigner
  • Loading branch information
mtabacman committed Apr 19, 2021
2 parents a4eae8d + 02ff9cf commit ce05e1b
Show file tree
Hide file tree
Showing 6 changed files with 8 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
1 change: 1 addition & 0 deletions source/Willow-Core/ComponentFocusingCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ComponentFocusingCommand class >> findingComponentUsing: aComponentProvider [
{ #category : #'instance creation' }
ComponentFocusingCommand class >> for: anIdentifiedView [

anIdentifiedView beIdentifiable.
^ self findingComponentUsing: [ :aCanvas | aCanvas locate: anIdentifiedView ]
]

Expand Down

0 comments on commit ce05e1b

Please sign in to comment.