2012-01-07 02:10:47 +00:00
|
|
|
bindJQuery();
|
2011-11-14 23:08:21 +00:00
|
|
|
publishExternalAPI(angular);
|
|
|
|
|
|
2011-05-19 15:33:25 +00:00
|
|
|
var $runner = new angular.scenario.Runner(window),
|
2012-01-07 02:10:47 +00:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
});
|
2010-05-25 21:23:52 +00:00
|
|
|
|
2011-05-19 15:33:25 +00:00
|
|
|
if (config.autotest) {
|
2011-02-05 00:42:21 +00:00
|
|
|
jqLiteWrap(document).ready(function() {
|
2011-05-19 15:33:25 +00:00
|
|
|
angular.scenario.setUpAndRun(config);
|
2011-01-09 08:57:24 +00:00
|
|
|
});
|
2011-05-19 15:33:25 +00:00
|
|
|
}
|
2011-01-09 08:57:24 +00:00
|
|
|
})(window, document);
|
2011-05-19 15:33:25 +00:00
|
|
|
|