Skip to content

Commit

Permalink
add bug/test snippets #97, #100
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecil committed Apr 3, 2015
1 parent 24bc508 commit d9a4578
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bugs/bug097.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Shoes.app width: 400, height: 400 do
ext = "svg"
path = "#{LIB_DIR}/snapshotfile.#{ext}"

stack do
button("shoot!") do
r = snapshot :format => ext.to_sym, :filename => path do
stroke blue
strokewidth 4
fill black
oval 100, 100, 200
end
info r.inspect
alert path, title: "snapshot saved to :"
Shoes.show_log
end
end
end
9 changes: 9 additions & 0 deletions bugs/bug100.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Shoes.app width: 100, height: 100 do
stack width: 80, height: 80, margin: [10,10,0,0] do
background orange
end
stroke blue
strokewidth 1
nofill
rect 10,10,80,80
end

0 comments on commit d9a4578

Please sign in to comment.