Sha256: 7d5f5f2bc42fd5228b9aa7495f5b4abf4d61cfeb10f7fcef5adf786c00b89c42

Contents?: true

Size: 1.31 KB

Versions: 31

Compression:

Stored size: 1.31 KB

Contents

// Init
load("src/env.js");
load("src/htmlparser.js");

window.location = "test/index.html";

window.onload = function(){
	load("test/testrunner.js");
	load("test/jquery.js");

	var depth = 0;

	function indent(){
		var str = "";
		for ( var i = 0; i < depth; i++ ) {
			str += "  ";
		}
		return str;
	}

	function dump(name, args, ret){
		print(name + ": " + Array.prototype.slice.call(args) + " - Return: " + ret);
	}

	for ( var method in jQuery.fn ) (function(method){ if ( method != "init" ) {
		var old = jQuery.fn[method];
		jQuery.fn[method] = function(){
			print(indent() + method + ": " + Array.prototype.slice.call(arguments));
			depth++;
			var ret = old.apply(this, arguments);
			depth--;
			print(indent() + method + ": Return " + ret);
			return ret;
		};
	} })(method);

	for ( var method in jQuery ) (function(method){ if ( method != "prototype" && method != "fn" ) {
		var old = jQuery[method];
		jQuery[method] = function(){
			print(indent() + "$." + method + ": " + Array.prototype.slice.call(arguments));
			depth++;
			var ret = old.apply(this, arguments);
			depth--;
			print(indent() + "$." + method + ": Return " + ret);
			return ret;
		};
	} })(method);

	jQuery.prototype.toString = DOMNodeList.prototype.toString;
	Function.prototype.toString = function(){ return "function()"; };

	print("Ready.");
};

Version data entries

31 entries across 31 versions & 4 rubygems

Version Path
envjs19-0.3.8.20101029121421 test/debug.js
envjs-0.3.8 test/debug.js
envjs-0.3.7 test/debug.js
envjs-0.3.6 test/debug.js
envjs-0.3.5 test/debug.js
envjs-0.3.4 test/debug.js
envjs-0.3.3 test/debug.js
envjs-0.3.2 test/debug.js
envjs-0.3.1 test/debug.js
envjs-0.3.0 test/debug.js
envjs-0.2.0 test/debug.js
envjs-0.1.7 test/debug.js
envjs-0.1.6 test/debug.js
envjs-0.1.5 test/debug.js
envjs-0.1.4 test/debug.js
envjs-0.1.3 test/debug.js
harmony-0.5.1 vendor/envjs/test/debug.js
harmony-0.5 vendor/envjs/test/debug.js
envjs-0.1.2 test/debug.js
envjs-0.1.1 test/debug.js