Sha256: 6c6a9932ec9e282ac1b5575f80870f071306aad23c2b6f9949d2c3236d87aa67

Contents?: true

Size: 850 Bytes

Versions: 17

Compression:

Stored size: 850 Bytes

Contents

describe "NativeBar" do

if !Rho::System.isRhoSimulator && System.get_property('platform') != 'WINDOWS' && System.get_property('platform') != 'WINDOWS_DESKTOP'
  it "should create" do
    NativeBar.create Rho::RhoApplication::NOBAR_TYPE, []
    sleep 20
    NativeBar.started.should ==  false

    NativeBar.create Rho::RhoApplication::TOOLBAR_TYPE, [{:action => :back}]
    sleep 20
    NativeBar.started.should ==  true

    NativeBar.remove
    sleep 20
    NativeBar.started.should ==  false

  end
else

  it "should create" do
    Rho::NativeToolbar.remove
    sleep 20
    Rho::NativeToolbar.isCreated.should ==  false

    Rho::NativeToolbar.create [{:action => :back}]
    sleep 20
    Rho::NativeToolbar.isCreated.should ==  true

    Rho::NativeToolbar.remove
    sleep 20
    Rho::NativeToolbar.isCreated.should == false

  end

end

end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
rhodes-7.6.0 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-7.5.1 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-7.4.1 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-7.1.17 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-6.2.0 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-6.0.11 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-5.5.18 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-5.5.17 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-5.5.15 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-5.5.0.22 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-5.5.2 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-5.5.0.7 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-5.5.0.3 spec/phone_spec/app/spec/nativebar_spec.rb
rhodes-5.5.0 spec/phone_spec/app/spec/nativebar_spec.rb
tauplatform-1.0.3 spec/phone_spec/app/spec/nativebar_spec.rb
tauplatform-1.0.2 spec/phone_spec/app/spec/nativebar_spec.rb
tauplatform-1.0.1 spec/phone_spec/app/spec/nativebar_spec.rb