Sha256: a65ed889c9e6e7aecbfe511c4aca0a0fd94fee3846e0d42ee9f5141b8d6469ba

Contents?: true

Size: 1.49 KB

Versions: 14

Compression:

Stored size: 1.49 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            portions copyright @2009 Apple Inc.
// License:   Licensed 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";
var pane, view;
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

14 entries across 7 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/frameworks/desktop/tests/views/well/ui.js
spade-0.0.1 sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js
sproutcore-1.4.5 lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js
sproutcore-1.4.5 lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutcore-1.4.5-java lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js
sproutcore-1.4.5-java lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js