mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-20 07:15:31 +08:00
text context extracted
This commit is contained in:
@@ -1,24 +1,7 @@
|
||||
describe('Runner', function() {
|
||||
|
||||
var scenario, runner, log, Describe, It, $scenario, body;
|
||||
|
||||
function logger(text) {
|
||||
return function(done){
|
||||
log += text;
|
||||
(done||noop)();
|
||||
};
|
||||
}
|
||||
|
||||
beforeEach(function() {
|
||||
log = '';
|
||||
scenario = {};
|
||||
body = _jQuery('<div></div>');
|
||||
runner = new angular.scenario.Runner(scenario, _jQuery);
|
||||
Describe = scenario.describe;
|
||||
BeforeEach = scenario.beforeEach;
|
||||
AfterEach = scenario.afterEach;
|
||||
It = scenario.it;
|
||||
$scenario = scenario.$scenario;
|
||||
setUpContext();
|
||||
});
|
||||
|
||||
describe('describe', function() {
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
//var scenario, runner, log, Describe, It, $scenario, body;
|
||||
//
|
||||
//function logger(text) {
|
||||
// return function(done){
|
||||
// log += text;
|
||||
// (done||noop)();
|
||||
// };
|
||||
//}
|
||||
//
|
||||
//function beforeEach() {
|
||||
// log = '';
|
||||
// scenario = {};
|
||||
// body = _jQuery('<div></div>');
|
||||
// runner = new angular.scenario.Runner(scenario, _jQuery);
|
||||
// Describe = scenario.describe;
|
||||
// BeforeEach = scenario.beforeEach;
|
||||
// AfterEach = scenario.afterEach;
|
||||
// It = scenario.it;
|
||||
// $scenario = scenario.$scenario;
|
||||
//}
|
||||
var scenario, runner, log, $scenario, Describe, It, body;
|
||||
|
||||
function logger(text) {
|
||||
return function(done){
|
||||
log += text;
|
||||
(done||noop)();
|
||||
};
|
||||
}
|
||||
|
||||
function setUpContext() {
|
||||
scenario = {};
|
||||
runner = new angular.scenario.Runner(scenario, _jQuery);
|
||||
$scenario = scenario.$scenario;
|
||||
Describe = scenario.describe;
|
||||
BeforeEach = scenario.beforeEach;
|
||||
AfterEach = scenario.afterEach;
|
||||
It = scenario.it;
|
||||
log = '';
|
||||
body = _jQuery('<div></div>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user