Sha256: 0131625d84d501404fa4b3a95ff2119b1714f7a787fce9c206a4869ba3a75700

Contents?: true

Size: 1.49 KB

Versions: 11

Compression:

Stored size: 1.49 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
//            portions copyright @2009 Apple, Inc.
// License:   Licened under MIT license (see license.js)
// ==========================================================================

/*global module test htmlbody ok equals same stop start */

var iconURL= "http://www.freeiconsweb.com/Icons/16x16_people_icons/People_046.gif";

module("SC.TabView", {
  setup: function() {
    SC.RunLoop.begin();
    pane = SC.MainPane.create({
      childViews: [
        SC.TabView.extend({
          nowShowing: 'tab2',

          items: [
            { title: "tab1", value: "tab1" , icon: iconURL},
            { title: "tab2", value: "tab2" , icon: iconURL},
            { title: "tab3", value: "tab3" , icon: iconURL}
          ],

          itemTitleKey: 'title',
          itemValueKey: 'value',
          itemIconKey: 'icon',
          layout: { left:12, height: 200, right:12, top:12 }
          
        })]
    });
    pane.append(); // make sure there is a layer...
    SC.RunLoop.end();
    
    view = pane.childViews[0];
  }, 
  
  teardown: function() {
    pane.remove();
    pane = view = null ;
  }
});

test("Check that all segmentedViews are visible", function() {
   ok(true, 'hello');
 });


//_tab_nowShowingDidChange: function() {

//_tab_saveUserDefault: function() {

//_tab_itemsDidChange: function() {

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090408130025 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutit-sproutcore-1.0.0.20090416161445 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutit-sproutcore-1.0.0.20090720093355 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutit-sproutcore-1.0.0.20090720202429 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutit-sproutcore-1.0.0.20090721125122 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutit-sproutcore-1.0.126 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutit-sproutcore-1.0.20090721145251 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutit-sproutcore-1.0.20090721145280 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutit-sproutcore-1.0.20090721145281 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutit-sproutcore-1.0.20090721145282 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutit-sproutcore-1.0.203 frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js