Sha256: 2a8cd96bb0b2cc17164e7eb15b042ae2ee17aaa5b436e07394e4e2954efe484d

Contents?: true

Size: 1.48 KB

Versions: 10

Compression:

Stored size: 1.48 KB

Contents

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
	"http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>testing debugging and logging functions</title>
		<script type="text/javascript">
			djConfig = {};
			if( document.location.href.match(/\?ON/)) {
				djConfig.isDebug = true;
			} else {
				djConfig.isDebug = false;
			}
		</script>
		<script type="text/javascript" src="../../../dojo.js"></script>
		<script type="text/javascript">
			dojo.addOnLoad(function(){
				var toggle = document.getElementById("toggle").innerHTML = djConfig.isDebug?"ON":"OFF";
			});
			
			var aString = "this is my test string";
			var anObject = {
				aProperty: "aValue",
				anotherProperty: "anotherValue",
				aNumber: 1234
			};
			
			var cn = ["debug","log",
				"assert", "count", "dir", "dirxml", "error", "group",
				"groupEnd", "info", "profile", "profileEnd", "time", "timeEnd",
				"trace", "warn"
			];
			for(var i=0;i<cn.length;i++) {
				console[cn[i]]( cn[i] + ": " + aString);
				console[cn[i]]( cn[i] + ": " + anObject);
			}
		</script>
	</head>
	<body>
		<p>
			Testing console.* methods with djConfig.isDebug turned <span id="toggle"></span>
		</p>
		<p>
			Append '?ON' to URL to try with djConfig.isDebug turned ON. Remove it to test djConfig.isDebug turned OFF
		</p>
		<p>
			If isDebug is off (false), then make sure console functions go to a simple empty function. You may see 
			errors in the console, since console.error is being tested as part of this test.
		</p>
	</body>
</html>

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
dojo_src-1.5.0 dojo/dojo/tests/_base/_loader/debugConsole.html
dojo_src-1.4.3 dojo/dojo/tests/_base/_loader/debugConsole.html
dojo_src-1.4.102 dojo/dojo/tests/_base/_loader/debugConsole.html
dojo-pkg-1.132.0 data/dojo-release-1.3.2-src/dojo/tests/_base/_loader/debugConsole.html
dojo-pkg-1.120.0 data/dojo-release-1.2.0-src/dojo/tests/_base/_loader/debugConsole.html
dojo-pkg-1.121.0 data/dojo-release-1.2.1-src/dojo/tests/_base/_loader/debugConsole.html
dojo-pkg-1.122.0 data/dojo-release-1.2.2-src/dojo/tests/_base/_loader/debugConsole.html
dojo-pkg-1.123.0 data/dojo-release-1.2.3-src/dojo/tests/_base/_loader/debugConsole.html
dojo-pkg-1.130.0 data/dojo-release-1.3.0-src/dojo/tests/_base/_loader/debugConsole.html
dojo-pkg-1.131.0 data/dojo-release-1.3.1-src/dojo/tests/_base/_loader/debugConsole.html