aboutsummaryrefslogtreecommitdiffstats
path: root/src/scenario/angular.suffix
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenario/angular.suffix')
-rw-r--r--src/scenario/angular.suffix12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/scenario/angular.suffix b/src/scenario/angular.suffix
index a79fd270..c75c5cca 100644
--- a/src/scenario/angular.suffix
+++ b/src/scenario/angular.suffix
@@ -1,7 +1,17 @@
+bindJQuery();
publishExternalAPI(angular);
var $runner = new angular.scenario.Runner(window),
- config = angularJsConfig(document);
+ scripts = document.getElementsByTagName('script'),
+ script = scripts[scripts.length - 1],
+ config = {};
+
+angular.forEach(script.attributes, function(attr) {
+ var match = attr.name.match(/ng[:\-](.*)/);
+ if (match) {
+ config[match[1]] = attr.value || true;
+ }
+});
if (config.autotest) {
jqLiteWrap(document).ready(function() {