Sha256: 8ba6055fcce34d98db3bd22b0031d8d0431150f5cce19ee537535350d325c0d1

Contents?: true

Size: 1.43 KB

Versions: 17

Compression:

Stored size: 1.43 KB

Contents

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

sc_require('states/ready');

/**
  State when targets are loaded, but no target is selected.
*/
TestRunner.READY_EMPTY = SC.Responder.create({

  nextResponder: TestRunner.READY,
  
  /**
    Show laoding targets view.
  */
  didBecomeFirstResponder: function() {
    TestRunner.set('currentScene', 'testsNone');

    // if a route is pending, then try to select the target.  If no target
    // could be found, then set the final route to here.
    TestRunner.updateRoute(null, null, NO);
     
    if (TestRunner.get('routePending')) {
      var target = TestRunner.computeRouteTarget();
      if (target) TestRunner.sendAction('selectTarget', this, target);
      else TestRunner.updateRoute(null, null, YES) ;
    } 
    
  },
  
  willLoseFirstResponder: function() {
    TestRunner.set('currentScene', null);
  },
  
  /**
    While in the empty state, save the target/test and then. 
  */
  route: function(sender, params) {
    TestRunner.set('routeTarget', params.target);
    TestRunner.set('routeTest', params.test);
  }
  
});

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
sproutit-sproutcore-1.0.20090721145285 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1046 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1043 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1042 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1037 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1035 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1031 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1030 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1029 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1027 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1028 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1026 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1025 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1024 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1009 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1008 frameworks/sproutcore/apps/tests/states/ready_empty.js
sproutcore-1.0.1003 frameworks/sproutcore/apps/tests/states/ready_empty.js