aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
authorIgor Minar2011-09-21 02:47:12 +0200
committerIgor Minar2011-09-26 23:51:55 +0200
commit2e9fed7b6c5f8c738406c4e9e65300e5d69a113a (patch)
tree2468bedeb65e0dce2c37ad6fbe1f0a8d60788c4e /docs/src
parentea3228e311a22d5f917ca7135ee4d68738a6dfb4 (diff)
downloadangular.js-2e9fed7b6c5f8c738406c4e9e65300e5d69a113a.tar.bz2
fix(e2e): add index-nocache.html to run e2e tests without cache
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')
-rwxr-xr-xdocs/src/gen-docs.js8
-rw-r--r--docs/src/ngdoc.js4
2 files changed, 10 insertions, 2 deletions
diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js
index c7b37025..5e642686 100755
--- a/docs/src/gen-docs.js
+++ b/docs/src/gen-docs.js
@@ -48,9 +48,17 @@ function writeTheRest(writesFuture) {
writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index.html',
writer.replace, {'doc:manifest': manifest}));
+ writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-nocache.html',
+ writer.replace, {'doc:manifest': ''}));
+
+
writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-jq.html',
writer.replace, {'doc:manifest': manifest}));
+ writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-jq-nocache.html',
+ writer.replace, {'doc:manifest': ''}));
+
+
writesFuture.push(writer.copy('docs/src/templates/index.html', 'build/docs/index-debug.html',
writer.replace, {'doc:manifest': ''}));
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js
index abe5e1d7..8a20e64a 100644
--- a/docs/src/ngdoc.js
+++ b/docs/src/ngdoc.js
@@ -570,14 +570,14 @@ function scenarios(docs){
var specs = [];
specs.push('describe("angular+jqlite", function() {');
- appendSpecs('');
+ appendSpecs('index-nocache.html#!/');
specs.push('});');
specs.push('');
specs.push('');
specs.push('describe("angular+jquery", function() {');
- appendSpecs('index-jq.html#!/');
+ appendSpecs('index-jq-nocache.html#!/');
specs.push('});');
return specs.join('\n');