aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorIgor Minar2011-09-21 02:47:12 +0200
committerIgor Minar2011-09-26 23:51:55 +0200
commit2e9fed7b6c5f8c738406c4e9e65300e5d69a113a (patch)
tree2468bedeb65e0dce2c37ad6fbe1f0a8d60788c4e /Rakefile
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 'Rakefile')
-rw-r--r--Rakefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 642ef567..0c9efcf9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -223,6 +223,24 @@ task :package => [:clean, :compile, :docs] do
end
+ File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/index-nocache.html", File::RDWR) do |f|
+ text = f.read
+ f.truncate 0
+ f.rewind
+ f.write text.sub('angular.min.js', "angular-#{NG_VERSION.full}.min.js").
+ sub('/build/docs/', "/#{NG_VERSION.full}/docs-#{NG_VERSION.full}/")
+ end
+
+
+ File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/index-jq-nocache.html", File::RDWR) do |f|
+ text = f.read
+ f.truncate 0
+ f.rewind
+ f.write text.sub('angular.min.js', "angular-#{NG_VERSION.full}.min.js").
+ sub('/build/docs/', "/#{NG_VERSION.full}/docs-#{NG_VERSION.full}/")
+ end
+
+
File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/index-debug.html", File::RDWR) do |f|
text = f.read
f.truncate 0