Sha256: 5e84efc7609ba5c219ce003cdc7720a25a4058abc548fa5d3884870de98e7127

Contents?: true

Size: 658 Bytes

Versions: 19

Compression:

Stored size: 658 Bytes

Contents

require 'test_helper'
require 'rubygems'
require 'netzke-core'

class TabPanelTest < ActiveSupport::TestCase

  test "active item" do
    tab_panel = Netzke::TabPanel.new(:items => [{
      :class_name => "Panel"
    },{
      :class_name => "Panel", :name => "second_panel", :active => true
    }])

    assert_equal(2, tab_panel.initial_components.keys.size)
    assert_equal("item0", tab_panel.components[:item0][:name])
    assert_equal("second_panel", tab_panel.components[:second_panel][:name])
    assert(tab_panel.components[:second_panel][:active])
    assert_equal("Panel", tab_panel.js_config[:second_panel_config][:scoped_class_name])
  end

end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
netzke-basepack-0.8.4 test/unit/tab_panel_test.rb
netzke-basepack-0.8.3 test/unit/tab_panel_test.rb
netzke-basepack-0.8.2 test/unit/tab_panel_test.rb
netzke-basepack-0.8.1 test/unit/tab_panel_test.rb
netzke-basepack-0.8.0 test/unit/tab_panel_test.rb
netzke-basepack-0.7.7 test/unit/tab_panel_test.rb
netzke-basepack-zh-0.7.6 test/unit/tab_panel_test.rb
netzke-basepack-0.7.6 test/unit/tab_panel_test.rb
netzke-basepack-0.7.5 test/unit/tab_panel_test.rb
netzke-basepack-0.7.4 test/unit/tab_panel_test.rb
netzke-basepack-0.7.3 test/unit/tab_panel_test.rb
netzke-basepack-0.7.2 test/unit/tab_panel_test.rb
netzke-basepack-0.7.1 test/unit/tab_panel_test.rb
netzke-basepack-0.6.5 test/unit/tab_panel_test.rb
netzke-basepack-0.7.0 test/unit/tab_panel_test.rb
netzke-basepack-0.6.4 test/unit/tab_panel_test.rb
netzke-basepack-0.6.3 test/unit/tab_panel_test.rb
netzke-basepack-0.6.2 test/unit/tab_panel_test.rb
netzke-basepack-0.6.1 test/unit/tab_panel_test.rb