aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/_namespace.js
diff options
context:
space:
mode:
authorAdam Abrons2010-03-15 17:02:54 -0700
committerAdam Abrons2010-03-15 17:02:54 -0700
commit39c6c5975bedf6e1610f7328a088acda9ab3406a (patch)
treec49a499733b7a3ec3547c64ff4d3ba5f9381dfa7 /src/scenario/_namespace.js
parent79b743e52feb2c57ba0ae42d6d2742bc2189b22f (diff)
downloadangular.js-39c6c5975bedf6e1610f7328a088acda9ab3406a.tar.bz2
get scenarios running again - open Runner.html in a browser to run them
Diffstat (limited to 'src/scenario/_namespace.js')
-rw-r--r--src/scenario/_namespace.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/scenario/_namespace.js b/src/scenario/_namespace.js
new file mode 100644
index 00000000..7da3a5d8
--- /dev/null
+++ b/src/scenario/_namespace.js
@@ -0,0 +1,6 @@
+if (!angular) var angular = window['angular'] = {};
+if (!angular['scenario']) var angularScenario = angular['scenario'] = {};
+if (!angular['scenarioDef']) var scenarioDef = angular['scenarioDef'] = {};
+if (!angular['scenario']['GIVEN']) angularScenario['GIVEN'] = {};
+if (!angular['scenario']['WHEN']) angularScenario['WHEN'] = {};
+if (!angular['scenario']['THEN']) angularScenario['THEN'] = {};