Sha256: 824f6125b4712f9caa3734cc62b297c0e3711c030f1ad4d334ee2b43343b8ab0

Contents?: true

Size: 1.36 KB

Versions: 7

Compression:

Stored size: 1.36 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
//            Portions ©2008-2009 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

7 entries across 7 versions & 1 rubygems

Version Path
sproutcore-1.4.0.rc.5 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.4.0.rc.4 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.4.0.rc.3 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.4.0.rc.2 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.4.0.rc lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.0.1049.pre.2 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.0.1049.pre.1 frameworks/sproutcore/apps/tests/states/ready_list.js