Remove deprecated class jasmine.Reporters.

Fully deprecate old-style Matchers; will be removed in next major version.
This commit is contained in:
Lee Byrd & Christian Williams
2010-06-22 17:35:41 -07:00
parent 0539251fe6
commit 413be6b4ca
6 changed files with 12 additions and 115 deletions

View File

@@ -33,20 +33,16 @@ describe('jasmine.Reporter', function() {
var bar = 0;
var baz = 0;
var specCallback = function (results) {
foo++;
};
var suiteCallback = function (results) {
bar++;
};
var runnerCallback = function (results) {
baz++;
};
env.reporter = jasmine.Reporters.reporter({
specCallback: specCallback,
suiteCallback: suiteCallback,
runnerCallback: runnerCallback
env.addReporter({
reportSpecResults: function() {
foo++;
},
reportSuiteResults: function() {
bar++;
},
reportRunnerResults: function() {
baz++;
}
});
var runner = env.currentRunner();