Sha256: e54a0d6e7b2dc91746c1e2b2020c3f9391801d3f8e767e205498a16bc5f82b16

Contents?: true

Size: 1.35 KB

Versions: 6

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 loading 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

6 entries across 6 versions & 1 rubygems

Version Path
sproutcore-1.9.2 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.9.1 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.9.0 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.8.2.1 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.8.1 lib/frameworks/sproutcore/apps/tests/states/ready_list.js
sproutcore-1.8.0 lib/frameworks/sproutcore/apps/tests/states/ready_list.js