Lively Kernel canvas
//
FixDuplicateWithBindings40
TODO,WhenDuplicatingthebluerectangle,thebindingsshouldduplicateappropriatly1
RunTestfalsenull>' + result.selector;\n\t\t\tmsg += '\\n';\n\t\t\tmsg += result.err.message;\n\t\t\treturn msg;\n\t\t}).join('\\n---------\\n');\n\t\t$morph('testResult').setExtent(pt(400,20))\n\t\t$morph('testResult').setFill(Color.red);\n\t\t$morph('testResult').setTextString(failStr);\n\t} /* runFinished */"]]>falsenull
Global
BindingsDuplicateTest>>testDuplicateBinding((undefined!=pt(50.0,50.0)))>testDuplicateBinding\n( (undefined != pt(50.0,50.0)))"]]>1
RunningBindingsDuplicateTest>>testBindingWorks>testBindingWorks"]]>falsetruefalsetrue0
Warn:Directlypassingaconverterfunctiontoconnect()isdeprecated!Usespecobjectinstead!falsetruefalsetrue0
BindingsDuplicateTest>>testBindingWorksdone>testBindingWorks done"]]>falsetruefalsetrue0
RunningBindingsDuplicateTest>>testDuplicateBinding>testDuplicateBinding"]]>falsetruefalsetrue0
Warn:Directlypassingaconverterfunctiontoconnect()isdeprecated!Usespecobjectinstead!falsetruefalsetrue0
Warn:ErrorwhentryingtoupdateAttributeConnection(187146:Morph([[undefined,undefined,100,50]]).origin-->187142:TextMorph([[undefined,undefined,100,21.200000762939453]]).setTextString())withvaluept(100.0,100.0):TypeError:Resultofexpression'ea'[undefined]isnotanobject. 187142:TextMorph([[undefined, undefined, 100, 21.200000762939453]]).setTextString()) with value pt(100.0,100.0):\nTypeError: Result of expression 'ea' [undefined] is not an object."]]>1falsetruefalsetrue0
Warn:ErrorwhentryingtoupdateAttributeConnection(187146:Morph([[undefined,undefined,100,50]]).origin-->187142:TextMorph([[undefined,undefined,100,21.200000762939453]]).setTextString())withvaluept(50.0,50.0):TypeError:Resultofexpression'ea'[undefined]isnotanobject. 187142:TextMorph([[undefined, undefined, 100, 21.200000762939453]]).setTextString()) with value pt(50.0,50.0):\nTypeError: Result of expression 'ea' [undefined] is not an object."]]>1falsetruefalsetrue0
BindingsDuplicateTest>>testDuplicateBinding((undefined!=pt(50.0,50.0)))>testDuplicateBinding( (undefined != pt(50.0,50.0)))"]]>falsetruefalsetrue0
((undefined!=pt(50.0,50.0)))(http://lively-kernel.org/repository/webwerkstatt/lively/TestFramework.js?1276610118124:117)inBindingsDuplicateTest>>testDuplicateBinding>testDuplicateBinding"]]>falsetruefalsetrue0
RunningBindingsDuplicateTest>>testAttributeConnectionsAreDuplicated>testAttributeConnectionsAreDuplicated"]]>falsetruefalsetrue0
Warn:Directlypassingaconverterfunctiontoconnect()isdeprecated!Usespecobjectinstead!falsetruefalsetrue0
Warn:ErrorwhentryingtoupdateAttributeConnection(187162:Morph([[undefined,undefined,100,50]]).origin-->187158:TextMorph([[undefined,undefined,100,21.200000762939453]]).setTextString())withvaluept(100.0,100.0):TypeError:Resultofexpression'ea'[undefined]isnotanobject. 187158:TextMorph([[undefined, undefined, 100, 21.200000762939453]]).setTextString()) with value pt(100.0,100.0):\nTypeError: Result of expression 'ea' [undefined] is not an object."]]>1falsetruefalsetrue0
BindingsDuplicateTest>>testAttributeConnectionsAreDuplicateddone>testAttributeConnectionsAreDuplicated done"]]>falsetruefalsetrue0
RunningBindingsDuplicateTest>>testCopyHasObservers>testCopyHasObservers"]]>falsetruefalsetrue0
Warn:Directlypassingaconverterfunctiontoconnect()isdeprecated!Usespecobjectinstead!falsetruefalsetrue0
Warn:ErrorwhentryingtoupdateAttributeConnection(187174:Morph([[undefined,undefined,100,50]]).origin-->187170:TextMorph([[undefined,undefined,100,21.200000762939453]]).setTextString())withvaluept(100.0,100.0):TypeError:Resultofexpression'ea'[undefined]isnotanobject. 187170:TextMorph([[undefined, undefined, 100, 21.200000762939453]]).setTextString()) with value pt(100.0,100.0):\nTypeError: Result of expression 'ea' [undefined] is not an object."]]>1falsetruefalsetrue0
BindingsDuplicateTest>>testCopyHasObserversdone>testCopyHasObservers done"]]>falsetruefalsetrue0
-------------------------------------------falsetruefalsetrue0
invoke1:WorldMorph([[undefined,undefined,2000,1200]])falsetruefalsetrue0
statusmsg:serializing....falsetruefalsetrue0
fontHelvetica16:spacewidth1637from1653xWidth8falsetruefalsetrue0
problemstoparsehttp://lively-kernel.org/repository/webwerkstatt/draft/FixDuplicateWithBindings.xhtmlfalsetruefalsetrue0
extendForSerializationundefinedfalsetruefalsetrue0Warn:unexpected:#<Relay{{"SourceString":"SourceString","StatusMessage":"StatusMessage","RootFilters":"RootFilters","Pane1Content":"Pane1Content","Pane1Selection":"Pane1Selection","Pane1Menu":"Pane1Menu","Pane1Filters":"Pane1Filters","Pane2Content":"Pane2Content","Pane2Selection":"Pane2Selection","Pane2Menu":"Pane2Menu","Pane2Filters":"Pane2Filters"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.LocalCodeBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.LocalCodeBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.LocalCodeBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.LocalCodeBrowser:[objectSVGElement]>ERRORSerializingiteminarraybuttonCommandsof#<lively.ide.LocalCodeBrowser:[objectSVGElement]>ERRORSerializingiteminarrayitemListof186909:FilterableListMorph([[1,1,295,218]])ERRORSerializingiteminarrayitemListof186909:FilterableListMorph([[1,1,295,218]])ERRORSerializingiteminarrayitemListof186909:FilterableListMorph([[1,1,295,218]])Warn:unexpected:#<Relay{{"List":"-Pane1Content","Selection":"Pane1Selection","Menu":"-Pane1Menu"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>ERRORSerializingiteminarrayitemListof186921:FilterableListMorph([[1,1,295,218]])ERRORSerializingiteminarrayitemListof186921:FilterableListMorph([[1,1,295,218]])ERRORSerializingiteminarrayitemListof186921:FilterableListMorph([[1,1,295,218]])ERRORSerializingiteminarrayitemListof186921:FilterableListMorph([[1,1,295,218]])ERRORSerializingiteminarrayitemListof186921:FilterableListMorph([[1,1,295,218]])Warn:unexpected:#<Relay{{"List":"-Pane2Content","Selection":"Pane2Selection","Menu":"-Pane2Menu"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>Warn:unexpected:#<Relay{{"Text":"SourceString"}}>sdelegateis#<Record{{"Pane1Content":{},"Pane1Selection":{},"Pane1Menu":{},"Pane1Filters":{},"Pane2Content":{},"Pane2Selection":{},"Pane2Menu":{},"Pane2Filters":{},"Pane3Content":{},"Pane3Selection":{},"Pane3Menu":{},"Pane3Filters":{},"SourceString":{},"StatusMessage":{},"RootFilters":{}}}>Warn:Cannotserializeobjectshavingnoidwha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>Warn:Cannotserializeobjectshavingnoidwha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>Warn:Cannotserializeobjectshavingnoidwha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>Warn:Cannotserializeobjectshavingnoidwha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>Warn:Cannotserializeobjectshavingnoidwha',norawnodeon#<ModelPlug{setIsActive:setIsActive,getIsActive:getIsActive}>880.826054921875
- "]]>
- >testBindingWorks"]]>
- >testBindingWorks done"]]>
- >testDuplicateBinding"]]>
- 187142:TextMorph([[undefined, undefined, 100, 21.200000762939453]]).setTextString()) with value pt(100.0,100.0):\nTypeError: Result of expression 'ea' [undefined] is not an object."]]>
- 187142:TextMorph([[undefined, undefined, 100, 21.200000762939453]]).setTextString()) with value pt(50.0,50.0):\nTypeError: Result of expression 'ea' [undefined] is not an object."]]>
- >testDuplicateBinding( (undefined != pt(50.0,50.0)))"]]>
- >testDuplicateBinding"]]>
- >testAttributeConnectionsAreDuplicated"]]>
- 187158:TextMorph([[undefined, undefined, 100, 21.200000762939453]]).setTextString()) with value pt(100.0,100.0):\nTypeError: Result of expression 'ea' [undefined] is not an object."]]>
- >testAttributeConnectionsAreDuplicated done"]]>
- >testCopyHasObservers"]]>
- 187170:TextMorph([[undefined, undefined, 100, 21.200000762939453]]).setTextString()) with value pt(100.0,100.0):\nTypeError: Result of expression 'ea' [undefined] is not an object."]]>
- >testCopyHasObservers done"]]>
-1nullnulltrue0falsetruetruefalse
false1truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetruefalse
truetrue100falsetrue
truefalse050"]]]>
nullfalsetruenullfalse
Consolefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
truenulltruetrue
pt(92.0,128.0)
nulltrueGlobal.h=falsem=Morph.makeRectangle(newRectangle(100,100,100,50))t=newTextMorph(newRectangle(0,0,100,20));m.addMorph(t)m.openInWorld()copyFromconnect(m,'origin',t,'setTextString',function(ea){returnString(ea)}).update()truetruefalse14truetruefalse
false1truefalsetruetruefalse
nullfalsetruenullfalse
falsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
10005.522955546608378Wikicontroltrue
localrequirements[doit]falsetruefalsetrue0false
initializer[doit]falsetruefalsetrue0false
BindingsDuplicateTest[class]falsetruefalsetrue0false3102nullnulltruefalsefalsenullnulltruetrue
false00.11truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetrue
setUp[proto]falsetruefalsetrue0false
testBindingWorks[proto]falsetruefalsetrue0false
testDuplicateBinding[proto]falsetruefalsetrue0false
testAttributeConnectionsAreDuplicated[proto]falsetruefalsetrue0false
testCopyHasObservers[proto]falsetruefalsetrue0false310-1nullnullnulltruefalsetruetrue
false00.11truefalse
nullfalse
nullfalse
nullfalse
nullfalsefalsetruetrue
20nullfalse
TestCase.subclass('BindingsDuplicateTest',{setUp:function(){this.sut=Morph.makeRectangle(newRectangle(100,100,100,50));this.sut.text=newTextMorph(newRectangle(0,0,100,20));connect(this.sut,'origin',this.sut.text,'setTextString',function(ea){returnString(ea)}).update()},testBindingWorks:function(){varp=pt(50,50);this.sut.setPosition(p);this.assertEqual(this.sut.text.textString,String(p))},testDuplicateBinding:function(){varp=pt(50,50);varcopy=this.sut.duplicate();copy.setPosition(p);this.assertEqual(this.sut.text.textString,String(p))},testAttributeConnectionsAreDuplicated:function(){varcopy=this.sut.duplicate();this.assert(this.sut.attributeConnections,"originalhasnoconnections");this.assert(copy.attributeConnections,"copyhasnoconnections");this.assert(copy.attributeConnections!==this.sut.attributeConnections,"cconnectionsarenotcopied");},testCopyHasObservers:function(){this.assert(this.sut.__lookupGetter__('origin'),"originalasnoobserver")varcopy=this.sut.duplicate();this.assert(copy.__lookupGetter__('origin'),"copyasnoobserver")},});41truetrue2000000falsetruetrue
false00.11truefalsetruetrue
20nullfalse
truetruefalsetruetrue
false00.11truefalsetruetrue
Browseworld...falsenulltruefalsefalsetrue
Pushchangesbackfalsenulltruefalsefalsetrue
Refreshfalsenulltruefalsefalsetrue
Evalonfalsenulltruefalsefalsetrue
Sortfalsenulltruefalsefalsetrue
truetruenull
nullfalsetruenull
BindingsDuplicateTest[class]falsenulltruefalse
false
false
falsenullfalsefalsenullnullnullnullfalse
dismissallfalsenulltruefalsetrue
Xfalsenulltruefalsetrue
serializing....16nullnull90