Sha256: 2f1186ef8d96c47b6a29b2459537b984cb6afde4038b4cc03339d49277c424bc

Contents?: true

Size: 650 Bytes

Versions: 10

Compression:

Stored size: 650 Bytes

Contents

if PurplishFrame.osx?
  describe "NSScreen" do
    it "Accessing" do
      screen = NSScreen.mainScreen
      screen.left.should.equal screen.frame.origin.x
      screen.right.should.equal screen.frame.size.width
      screen.top.should.equal (screen.frame.origin.y+screen.frame.size.height)
      screen.bottom.should.equal screen.frame.origin.y
      screen.center_x.should.equal (screen.frame.origin.x+screen.frame.size.width/2)
      screen.center_y.should.equal (screen.frame.origin.y+screen.frame.size.height/2)
      screen.width.should.equal screen.frame.size.width
      screen.height.should.equal screen.frame.size.height
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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