summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-06 15:45:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-06 15:45:11 +0200
commit9aba5f0bc6594806df6954df88749d1db99dd232 (patch)
tree95c21d35a4c1ff4e1b930d34651276a37692bb7d /spec
parent222486a25ec6b5ea02cca4aafd1336619caffcec (diff)
downloadffi-efl-9aba5f0bc6594806df6954df88749d1db99dd232.zip
ffi-efl-9aba5f0bc6594806df6954df88749d1db99dd232.tar.gz
add REvasObject#center set/get/=
Diffstat (limited to 'spec')
-rw-r--r--spec/evas_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb
index 94d549c..926ff22 100644
--- a/spec/evas_spec.rb
+++ b/spec/evas_spec.rb
@@ -378,6 +378,15 @@ describe Efl::Evas do
@o.geometry_get.should == [10,10,50,50]
end
#
+ it "center should work" do
+ @o.geometry.should == [10,10,50,50]
+ @o.center_get.should == [35,35]
+ @o.center.should == [35,35]
+ @o.center_set 50, 50
+ @o.center.should == [50,50]
+ @o.geometry.should == [25,25,50,50]
+ end
+ #
it "show hide visible should work" do
@o.show
@o.visible?.should be_true