Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Adding track test. #10

Merged
merged 1 commit into from

2 participants

Matt Kelly Robin Berjon
Matt Kelly

No description provided.

Robin Berjon darobin merged commit 2be4023 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2012
  1. Matt Kelly

    Adding track test.

    mattwkelly authored
This page is out of date. Refresh to see the latest.
4 tests/track/config.yml
View
@@ -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"
2  tests/track/fixture.html
View
@@ -0,0 +1,2 @@
+
+<!-- <iframe id="track" src="/tests/track/iframe.html"></iframe> -->
15 tests/track/test.js
View
@@ -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" );
+ }
+});
Something went wrong with that request. Please try again.