Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #10 from facebook/track

Adding track test.
NOTE: not testing anywhere near enough
  • Loading branch information...
commit 2be40231a6e180da675a0b10542cf02c34bafbec 2 parents ca1bb0b + d3becf0
@darobin darobin authored
View
4 tests/track/config.yml
@@ -0,0 +1,4 @@
+---
+ r: 1
+ spec: "http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#the-track-element"
+ title: "Video Tracks"
View
2  tests/track/fixture.html
@@ -0,0 +1,2 @@
+
+<!-- <iframe id="track" src="/tests/track/iframe.html"></iframe> -->
View
15 tests/track/test.js
@@ -0,0 +1,15 @@
+test("Video Track", function() {
+ var video = document.createElement("video"),
+ track = document.createElement("track");
+
+ assert( !!video.addTextTrack, "video.addTextTrack supported" );
+
+ if ( !track ) {
+ assert( false, "track elements are not supported, skipping tests" );
+ } else {
+ assert( "kind" in track, "track.kind supported" );
+ assert( "src" in track, "track.src supported" );
+ assert( "srclang" in track, "track.srclang supported" );
+ assert( "label" in track, "track.label supported" );
+ }
+});
Please sign in to comment.
Something went wrong with that request. Please try again.