mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-10 15:54:42 +00:00
text context extracted
This commit is contained in:
parent
32c4aee1cd
commit
e8b477f5b1
2 changed files with 21 additions and 38 deletions
|
|
@ -1,24 +1,7 @@
|
||||||
describe('Runner', function() {
|
describe('Runner', function() {
|
||||||
|
|
||||||
var scenario, runner, log, Describe, It, $scenario, body;
|
|
||||||
|
|
||||||
function logger(text) {
|
|
||||||
return function(done){
|
|
||||||
log += text;
|
|
||||||
(done||noop)();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
beforeEach(function() {
|
beforeEach(function() {
|
||||||
log = '';
|
setUpContext();
|
||||||
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;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('describe', function() {
|
describe('describe', function() {
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,20 @@
|
||||||
//var scenario, runner, log, Describe, It, $scenario, body;
|
var scenario, runner, log, $scenario, Describe, It, body;
|
||||||
//
|
|
||||||
//function logger(text) {
|
function logger(text) {
|
||||||
// return function(done){
|
return function(done){
|
||||||
// log += text;
|
log += text;
|
||||||
// (done||noop)();
|
(done||noop)();
|
||||||
// };
|
};
|
||||||
//}
|
}
|
||||||
//
|
|
||||||
//function beforeEach() {
|
function setUpContext() {
|
||||||
// log = '';
|
scenario = {};
|
||||||
// scenario = {};
|
runner = new angular.scenario.Runner(scenario, _jQuery);
|
||||||
// body = _jQuery('<div></div>');
|
$scenario = scenario.$scenario;
|
||||||
// runner = new angular.scenario.Runner(scenario, _jQuery);
|
Describe = scenario.describe;
|
||||||
// Describe = scenario.describe;
|
BeforeEach = scenario.beforeEach;
|
||||||
// BeforeEach = scenario.beforeEach;
|
AfterEach = scenario.afterEach;
|
||||||
// AfterEach = scenario.afterEach;
|
It = scenario.it;
|
||||||
// It = scenario.it;
|
log = '';
|
||||||
// $scenario = scenario.$scenario;
|
body = _jQuery('<div></div>');
|
||||||
//}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue