diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-01-27 04:15:53 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-01-27 04:15:53 +0100 |
commit | ae7393db3d99a7ac223ae917129cccd9f49888e3 (patch) | |
tree | 7f54b72b0d01c38afd1378365a67e4f192922423 /3rdparty/js/angular-1.0.2/docs/docs-scenario.html | |
parent | 483784caa38bd6131405ac474347a215584e30a5 (diff) |
merged the angularjs branch
Diffstat (limited to '3rdparty/js/angular-1.0.2/docs/docs-scenario.html')
-rw-r--r-- | 3rdparty/js/angular-1.0.2/docs/docs-scenario.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/3rdparty/js/angular-1.0.2/docs/docs-scenario.html b/3rdparty/js/angular-1.0.2/docs/docs-scenario.html new file mode 100644 index 000000000..a2f53811d --- /dev/null +++ b/3rdparty/js/angular-1.0.2/docs/docs-scenario.html @@ -0,0 +1,45 @@ +<!DOCTYPE HTML> +<html xmlns:ng="http://angularjs.org"> +<head> + <title>AngularJS Docs E2E Test Runner</title> + <script> + var gae = (location.pathname.split('/').length == 2), + headEl = document.head, + angularVersion = { + current: '1.0.2', // rewrite during build + stable: '1.0.1' + }; + + addTag('script', {src: path('angular-scenario.js')}, function() { + addTag('script', {src: 'docs-scenario.js'}, function() { + angular.scenario.setUpAndRun(); + }); + }); + + function addTag(name, attributes, callback) { + var el = document.createElement(name), + attrName; + + for (attrName in attributes) { + el.setAttribute(attrName, attributes[attrName]); + } + + if (callback) { + el.onload = callback; + } + + headEl.appendChild(el); + } + + + function path(name) { + return gae + ? 'http://code.angularjs.org/' + angularVersion.stable + '/' + + name.replace(/\.js$/, '-' + angularVersion.stable + '.js') + : '../' + name; + } + </script> +</head> +<body> +</body> +</html> |