Sha256: fda0c793655a52275400a8f604700912e5a5731121e35412443b0a54d6c96921
Contents?: true
Size: 1.41 KB
Versions: 4
Compression:
Stored size: 1.41 KB
Contents
metadata 'MetaData.xml' uia 'projects/SimpleScene/SimpleScene.uia' show app.errors if app.errors? main = app.main_presentation assert main.find( type:'Model' ).length==4 assert main.find( type:'Model', slide:0 ).length==3 assert main.find( type:'Model', slide:1 ).length==4 assert main.find( type:'Model', slide:1, master:false ).length==1 assert main.find( type:'Model', attributes:{position:[-150,60,0]} ).length==2 assert main.find( type:'Model', attributes:{position:[-150,60,0]} ).length==2 assert main.find( type:'Model', attributes:{position:[nil,60,nil]} ).length==4 assert main.find( type:'Model', attributes:{sourcepath:'#Cube'} ).length==1 assert main.find( under:main/"Scene.Layer.Sphere1" ).length==1 assert main.find( attributes:{name:'Material'} ).length==4 assert main.find( attributes:{name:/^Sphere/} ).length==2 # You can use name not as an attribute assert main.find( name:'Material' ).length==4 assert main.find( name:/^Sphere/ ).length==2 # Return values are in Scene graph order assert main.find.first == main/"Scene" assert main.find.last == main/"Scene.Layer.NonMaster.Material" # Any asset can be used as the 'root' sphere = main/"Scene.Layer.Sphere1" assert sphere.find.length==1 # Supplying a block will iterate, including the index expected = main.find type:'Model' found = 0 main.find type:'Model' do |mod,i| found += 1 assert mod == expected[i] end assert found==4
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
RUIC-0.2.6 | test/filtering.ruic |
RUIC-0.2.5 | test/filtering.ruic |
RUIC-0.2.0 | test/filtering.ruic |
RUIC-0.1.0 | test/filtering.ruic |