aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/TestContext.js
diff options
context:
space:
mode:
authorMisko Hevery2010-08-10 11:46:37 -0700
committerMisko Hevery2010-08-10 11:46:37 -0700
commit8d635cfb876e844302f24b8d08744cf44d5e7070 (patch)
treeafa3c5531c38d81c000c69601648743878c726c5 /test/scenario/TestContext.js
parent7673b2a2b291a4fc627e1cbdb8201f116a97b016 (diff)
parent86c2ef87d5069f0836079e171c0f33efcf2b5d24 (diff)
downloadangular.js-8d635cfb876e844302f24b8d08744cf44d5e7070.tar.bz2
Merge branch 'master' of github.com:angular/angular.js
Diffstat (limited to 'test/scenario/TestContext.js')
-rw-r--r--test/scenario/TestContext.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/scenario/TestContext.js b/test/scenario/TestContext.js
new file mode 100644
index 00000000..0c8e6143
--- /dev/null
+++ b/test/scenario/TestContext.js
@@ -0,0 +1,15 @@
+var _window, runner, log, $scenario;
+
+function logger(text) {
+ return function(done){
+ log += text;
+ (done||noop)();
+ };
+}
+
+function setUpContext() {
+ _window = {};
+ runner = new angular.scenario.Runner(_window, _jQuery);
+ $scenario = _window.$scenario;
+ log = '';
+}