Sha256: 048381b81ced347fed94844402a1c583c58eeb7ca486c9f163e007a2d808c7e7

Contents?: true

Size: 1.35 KB

Versions: 24

Compression:

Stored size: 1.35 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================
/*globals TestRunner */

sc_require('states/ready');

/**
  Initial state of application before it has loaded targets.
*/
TestRunner.READY_LIST = SC.Responder.create({
  
  nextResponder: TestRunner.READY,
  
  /**
    Show laoding targets view.
  */
  didBecomeFirstResponder: function() {
    TestRunner.set('currentScene', 'testsMaster');
    TestRunner.testsController.set('selection', null); // always empty sel
    //TestRunner.testsController.set('isShowingTests', YES);

    var target = TestRunner.sourceController.get('selection').firstObject();
    TestRunner.updateRoute(target, null, NO);
    if (TestRunner.get('routePending')) {
      var test = TestRunner.computeRouteTest();
      if (test) TestRunner.sendAction('selectTest', this, test);
      else TestRunner.updateRoute(target, null, YES);
    } 
    
  },
  
  willLoseFirstResponder: function() {
    TestRunner.set('currentScene', null);
    //TestRunner.testsController.set('isShowingTests', NO);
  }
  
});

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.1 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.1-x86-mingw32 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0-java lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.rc.2-x86-mingw32 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.rc.2 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.rc.2-java lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.rc.1-x86-mingw32 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.rc.1 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.rc.1-java lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.beta.3-x86-mingw32 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.beta.3-java lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.beta.3 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.beta.2-x86-mingw32 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.beta.2-java lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.beta.2 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.6.0.beta.1 lib/frameworks/sproutcore/apps/tests/states/ready_list.js