<commit_before>// ========================================================================
// RootResponder Tests
// ========================================================================
/*globals module test ok isObj equals expects */

/**
  This file is slightly subtle, in that we want to make sure SproutCore is 
  set up properly before any QUnit tests are run. Therefore...
*/

module("QUnit") ;

test("tests should not run until SproutCore is ready", function() {
  equals(SC.isReady, true, "SC.isReady");
});

test("tests should not run until the root responder has been setup", function() {
  expect(1);
  ok(SC.RootResponder.responder, "SC.RootResponder.responder");
});<commit_msg>new qUnit test: main() function should be overridable in a unit test<commit_after>// ========================================================================
// RootResponder Tests
// ========================================================================
/*globals module test ok isObj equals expects */

/**
  This file is slightly subtle, in that we want to make sure SproutCore is 
  set up properly before any QUnit tests are run. Therefore...
*/

var mainRan = NO ;

main = function() { mainRan = YES; } ;

module("QUnit") ;

test("tests should not run until SproutCore is ready", function() {
  equals(SC.isReady, true, "SC.isReady");
});

test("tests should not run until the root responder has been setup", function() {
  expect(1);
  ok(SC.RootResponder.responder, "SC.RootResponder.responder");
});

test("main() function should be overridable in a unit test", function() {
  ok(mainRan, "main function defined in unit test did not run");
});
{'fraction_non_alphanumeric': 0.27835051546391754, 'fraction_numerical': 0.001212856276531231, 'mean_word_length': 5.133828996282528, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1737893', 'n_tokens_mistral': 447, 'n_tokens_neox': 417, 'n_words': 162}