Sha256: 758001fe325e5658f864b577a48528cbdd6c074c765a2355b6670f3e762790db

Contents?: true

Size: 544 Bytes

Versions: 10

Compression:

Stored size: 544 Bytes

Contents

if PurplishFrame.ios?
  describe "UIScreen" do
    it "Accessing" do
      screen = UIScreen.mainScreen
      screen.left.should.equal 0
      screen.right.should.equal screen.bounds.size.width
      screen.top.should.equal 0
      screen.bottom.should.equal screen.bounds.size.height
      screen.center_x.should.equal screen.bounds.size.width/2
      screen.center_y.should.equal screen.bounds.size.height/2
      screen.width.should.equal screen.bounds.size.width
      screen.height.should.equal screen.bounds.size.height
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
purplish-frame-0.0.12 spec/ui/ios/ui_screen_spec.rb
purplish-frame-0.0.11 spec/ui/ios/ui_screen_spec.rb
purplish-frame-0.0.10 spec/ui/ios/ui_screen_spec.rb
purplish-frame-0.0.9 spec/ui/ios/ui_screen_spec.rb
purplish-frame-0.0.8 spec/ui/ios/ui_screen_spec.rb
purplish-frame-0.0.7 spec/ui/ios/ui_screen_spec.rb
purplish-frame-0.0.6 spec/ui/ios/ui_screen_spec.rb
purplish-frame-0.0.5 spec/ui/ios/ui_screen_spec.rb
purplish-frame-0.0.4 spec/ui/ios/ui_screen_spec.rb
purplish-frame-0.0.3 spec/ui/ios/ui_screen_spec.rb