aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/gen-docs.js
diff options
context:
space:
mode:
authorIgor Minar2011-09-21 02:47:12 +0200
committerIgor Minar2011-10-03 12:24:29 -0700
commit2f128c96191825139fe9eb1b43b0e3f5b5265440 (patch)
treeeefe520a7e97f62647c1b6d7c4e2527ae54be0ba /docs/src/gen-docs.js
parentf7a5f1788a794d082a05e48f728b22b47a6cc622 (diff)
downloadangular.js-2f128c96191825139fe9eb1b43b0e3f5b5265440.tar.bz2
fix(e2e): add index-nocache.html to run e2e tests without cachev0.9.x
using appcache while running e2e tests was causing the following problems: - Safari would occasionally reload the app (as a result of the appcache refresh) during the angular.validator.asychronous test, which would result in test failure and false positivy. - Firefox6 would run the tests very slowly, disabling the cache resolved the latency issues - Sometimes tests would run with stale code pulled from cache, which would result in flaky tests.
Diffstat (limited to 'docs/src/gen-docs.js')
-rwxr-xr-xdocs/src/gen-docs.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js
index 4649bec3..1e1474d8 100755
--- a/docs/src/gen-docs.js
+++ b/docs/src/gen-docs.js
@@ -43,10 +43,17 @@ function writeTheRest(writesFuture) {
writesFuture.push(writer.copyDir('img'));
writesFuture.push(writer.copyDir('examples'));
writesFuture.push(writer.copyTpl('index.html'));
- writesFuture.push(writer.copy('docs/src/templates/index.html',
- 'build/docs/index-jq.html',
- '<!-- jquery place holder -->',
- '<script src=\"jquery.min.js\"><\/script>'));
+
+ writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-jq.html',
+ '<!-- jquery place holder -->', '<script src=\"jquery.min.js\"><\/script>'));
+
+ writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-nocache.html',
+ 'manifest="appcache.manifest"', ''));
+
+ writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-jq-nocache.html',
+ 'manifest="appcache.manifest"', '',
+ '<!-- jquery place holder -->', '<script src=\"jquery.min.js\"><\/script>'));
+
writesFuture.push(writer.copyTpl('offline.html'));
writesFuture.push(writer.copyTpl('docs-scenario.html'));
writesFuture.push(writer.copyTpl('jquery.min.js'));