Sha256: 58b0c5640dd0e16596794003bf64c7a5adc657f6c8922a578b4b22ad853a85eb

Contents?: true

Size: 985 Bytes

Versions: 6

Compression:

Stored size: 985 Bytes

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 */

/**
  Displayed when the app has no targets.
*/
TestRunner.READY_NO_TESTS = SC.Responder.create({
  
  nextResponder: TestRunner.READY,
  
  /**
    Show loading targets view.
  */
  didBecomeFirstResponder: function() {
    TestRunner.set('currentScene', 'noTests');

    // this is always the final route since we can't load any tests
    var target = TestRunner.sourceController.get('selection').firstObject();
    TestRunner.updateRoute(target, null, YES);
  },
  
  willLoseFirstResponder: function() {
    TestRunner.set('currentScene', null);
  }
    
});

Version data entries

6 entries across 6 versions & 1 rubygems

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