diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..ccc9fd93 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.DS_Store \ No newline at end of file diff --git a/jquery.jplayer/Jplayer.swf b/jquery.jplayer/lib/Jplayer.swf similarity index 100% rename from jquery.jplayer/Jplayer.swf rename to jquery.jplayer/lib/Jplayer.swf diff --git a/jquery.jplayer/jquery.jplayer.js b/jquery.jplayer/lib/jquery.jplayer.js similarity index 100% rename from jquery.jplayer/jquery.jplayer.js rename to jquery.jplayer/lib/jquery.jplayer.js diff --git a/jquery.jplayer/spec/commands/example_command.rb b/jquery.jplayer/spec/commands/example_command.rb new file mode 100644 index 00000000..5136b441 --- /dev/null +++ b/jquery.jplayer/spec/commands/example_command.rb @@ -0,0 +1,19 @@ + +# uncomment and call with `$ jspec example ` + +# command :example do |c| +# c.syntax = 'jspec example [options]' +# c.description = 'Just an example command' +# c.option '-f', '--foo string', 'Does some foo with ' +# c.option '-b', '--bar [string]', 'Does some bar with [string]' +# c.example 'Do some foo', 'jspec example --foo bar' +# c.example 'Do some bar', 'jspec example --bar' +# c.when_called do |args, options| +# p args +# p options.__hash__ +# # options.foo +# # options.bar +# # options.__hash__[:foo] +# # options.__hash__[:bar] +# end +# end \ No newline at end of file diff --git a/jquery.jplayer/spec/dom.html b/jquery.jplayer/spec/dom.html new file mode 100644 index 00000000..84e1e6f7 --- /dev/null +++ b/jquery.jplayer/spec/dom.html @@ -0,0 +1,22 @@ + + + + + + + + + + +

JSpec

+
+
+ + \ No newline at end of file diff --git a/jquery.jplayer/spec/node.js b/jquery.jplayer/spec/node.js new file mode 100644 index 00000000..59daca2c --- /dev/null +++ b/jquery.jplayer/spec/node.js @@ -0,0 +1,10 @@ + +require.paths.unshift('spec', '/opt/local/lib/ruby/gems/1.8/gems/jspec-3.3.0/lib', 'lib') +require('jspec') +require('unit/spec.helper') +require('yourlib') + +JSpec + .exec('spec/unit/spec.js') + .run({ reporter: JSpec.reporters.Terminal, fixturePath: 'spec/fixtures' }) + .report() diff --git a/jquery.jplayer/spec/rhino.js b/jquery.jplayer/spec/rhino.js new file mode 100644 index 00000000..74bd1d80 --- /dev/null +++ b/jquery.jplayer/spec/rhino.js @@ -0,0 +1,10 @@ + +load('/opt/local/lib/ruby/gems/1.8/gems/jspec-3.3.0/lib/jspec.js') +load('/opt/local/lib/ruby/gems/1.8/gems/jspec-3.3.0/lib/jspec.xhr.js') +load('lib/yourlib.js') +load('spec/unit/spec.helper.js') + +JSpec +.exec('spec/unit/spec.js') +.run({ reporter: JSpec.reporters.Terminal, fixturePath: 'spec/fixtures' }) +.report() \ No newline at end of file diff --git a/jquery.jplayer/spec/server.html b/jquery.jplayer/spec/server.html new file mode 100644 index 00000000..9708e9c6 --- /dev/null +++ b/jquery.jplayer/spec/server.html @@ -0,0 +1,18 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/jquery.jplayer/spec/server.rb b/jquery.jplayer/spec/server.rb new file mode 100644 index 00000000..a6197fa6 --- /dev/null +++ b/jquery.jplayer/spec/server.rb @@ -0,0 +1,4 @@ + +get '/lib/*' do |path| + send_file File.dirname(__FILE__) + '/../lib/' + path +end \ No newline at end of file diff --git a/jquery.jplayer/spec/unit/spec.helper.js b/jquery.jplayer/spec/unit/spec.helper.js new file mode 100644 index 00000000..e69de29b diff --git a/jquery.jplayer/spec/unit/spec.js b/jquery.jplayer/spec/unit/spec.js new file mode 100644 index 00000000..7ebd0c0f --- /dev/null +++ b/jquery.jplayer/spec/unit/spec.js @@ -0,0 +1,4 @@ + +describe '$.fn.jPlayer' + +end \ No newline at end of file