Permalink
Browse files

Test with multiple versions of jQuery/jQuery UI.

  • Loading branch information...
1 parent 9c070fb commit 8fe084c921df794a1aaf85b77c6cb2049f41ec09 @jfirebaugh committed Mar 6, 2011
View
@@ -2,3 +2,6 @@ pkg/*
*.gem
.bundle
Gemfile.lock
+features/support/public/jquery.js
+features/support/public/jquery-ui.js
+features/support/public/jquery-ui.css
View
@@ -4,4 +4,17 @@ require 'cucumber/rake/task'
Bundler::GemHelper.install_tasks
Cucumber::Rake::Task.new
-task :default => :cucumber
+task :default do
+ versions = nil
+
+ cd('features/support/public') do
+ versions = Dir['jquery/*.js'].product(Dir['jquery-ui/*.js'])
+ end
+
+ versions.each do |jquery, jquery_ui|
+ ln_s jquery, 'features/support/public/jquery.js', :force => true
+ ln_s jquery_ui, 'features/support/public/jquery-ui.js', :force => true
+ ln_s jquery_ui.sub('.js', '.css'), 'features/support/public/jquery-ui.css', :force => true
+ task(:cucumber).execute
+ end
+end
@@ -2,9 +2,9 @@
<html>
<head>
<title>Accordion</title>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/jquery-ui.min.js"></script>
- <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/themes/base/jquery-ui.css">
+ <script src="jquery.js"></script>
+ <script src="jquery-ui.js"></script>
+ <link rel="stylesheet" href="jquery-ui.css">
<script>
$(function() { $( "#accordion" ).accordion(); });
</script>
@@ -2,9 +2,9 @@
<html>
<head>
<title>Autocomplete</title>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/jquery-ui.min.js"></script>
- <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/themes/base/jquery-ui.css">
+ <script src="jquery.js"></script>
+ <script src="jquery-ui.js"></script>
+ <link rel="stylesheet" href="jquery-ui.css">
<script>
$(function() {
var availableTags = [
@@ -2,9 +2,9 @@
<html>
<head>
<title>Dialog</title>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/jquery-ui.min.js"></script>
- <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.8/themes/base/jquery-ui.css">
+ <script src="jquery.js"></script>
+ <script src="jquery-ui.js"></script>
+ <link rel="stylesheet" href="jquery-ui.css">
<script>
$(function() {
$( "#dialog" ).dialog({

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 8fe084c

Please sign in to comment.