Sha256: 76be2ad313dc1d7b0984e7f47ff2907fcedb15fa98f7e1a29a5df53414409c6c

Contents?: true

Size: 1.35 KB

Versions: 7

Compression:

Stored size: 1.35 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2010 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 & 2 rubygems

Version Path
spade-0.0.1 sproutcore/apps/tests/states/ready_list.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.4.5 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.4.5-java lib/frameworks/sproutcore/apps/tests/states/ready_list.js