Don't show 'Jasmine waiting for...' console messages unless jasmine.VERBOSE is set to true

This commit is contained in:
ragaskar
2011-05-06 19:07:00 -04:00
parent c30f7d1aa7
commit 118324b451
4 changed files with 46 additions and 5 deletions

View File

@@ -22,6 +22,12 @@ jasmine.unimplementedMethod_ = function() {
*/
jasmine.undefined = jasmine.___undefined___;
/**
* Show diagnostic messages in the console if set to true
*
*/
jasmine.VERBOSE = false;
/**
* Default interval in milliseconds for event loop yields (e.g. to allow network activity or to refresh the screen with the HTML-based runner). Small values here may result in slow test running. Zero means no updates until all tests have completed.
*
@@ -599,4 +605,4 @@ jasmine.XmlHttpRequest = (typeof XMLHttpRequest == "undefined") ? function() {
if (!xhr) throw new Error("This browser does not support XMLHttpRequest.");
return xhr;
} : XMLHttpRequest;
} : XMLHttpRequest;