transferred Code Ocean from original repository to GitHub

This commit is contained in:
Hauke Klement
2015-01-22 09:51:49 +01:00
commit 4cbf9970b1
683 changed files with 11979 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="index.js"></script>
</head>
<body>
<h1>HTML5 Audio & Video</h1>
</body>
</html>

View File

@@ -0,0 +1,27 @@
require 'rack/file'
require 'capybara/rspec'
AUDIO_FILENAME = 'chai.ogg'
VIDEO_FILENAME = 'devstories.mp4'
Capybara.app = Rack::File.new(File.dirname(__FILE__))
describe 'index.html', type: :feature do
before(:each) { visit('index.html') }
it 'contains an audio element' do
expect(page).to have_css('audio')
end
it 'plays the correct audio file' do
expect(page).to have_css("audio[src='#{AUDIO_FILENAME}']")
end
it 'contains a video element' do
expect(page).to have_css('video')
end
it 'plays the correct video file' do
expect(page).to have_css("video[src='#{VIDEO_FILENAME}']")
end
end

View File

@@ -0,0 +1,3 @@
$(function() {
//
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB