aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorIgor Minar2011-09-21 02:47:12 +0200
committerIgor Minar2011-10-03 12:24:29 -0700
commit2f128c96191825139fe9eb1b43b0e3f5b5265440 (patch)
treeeefe520a7e97f62647c1b6d7c4e2527ae54be0ba /Rakefile
parentf7a5f1788a794d082a05e48f728b22b47a6cc622 (diff)
downloadangular.js-v0.9.x.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 'Rakefile')
-rw-r--r--Rakefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index ab8036d8..8f2d9a5c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -270,6 +270,22 @@ 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")
+ 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")
+ end
+
+
File.open("#{pkg_dir}/docs-#{NG_VERSION.full}/docs-scenario.html", File::RDWR) do |f|
text = f.read
f.truncate 0