-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* release/1.1.0: bump 1.1.0 support [start-at] in youtube/vimeo videos upgrade dependencies update vimeo test update video.html add vimeo test add start-at to vimeo && add vimeo test update youtube video test Add start-at attribute to video document events update changelog remove cruft Fix #16 Image Cut on left and right size upgrade deps update changelog fix typo update changelog mention caveats in readme Add extra activated event
- Loading branch information
Showing
13 changed files
with
833 additions
and
835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ logs | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
tags | ||
|
||
# Runtime data | ||
pids | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {createVimeoVideo} from './lib/util' | ||
import assert from 'assert' | ||
|
||
afterEach(() => { document.body.innerHTML = '' }) | ||
|
||
describe('Vimeo Video', () => { | ||
it('should provide the poster image', async () => { | ||
const {query} = await createVimeoVideo('1084537') | ||
assert.equal( | ||
query('img').getAttribute('src'), | ||
'/video/vimeo/1084537-poster-image' | ||
) | ||
}) | ||
|
||
it('should load the vimeo player after click', async () => { | ||
const {query, element} = await createVimeoVideo('1084537') | ||
assert.ok(!query('iframe')) | ||
element.activate() | ||
assert.ok(query('iframe')) | ||
}) | ||
|
||
it('[start-at]', async () => { | ||
const {element, query} = await createVimeoVideo('1084537', {'start-at': '97'}) | ||
element.activate() | ||
const iframeSrc = query('iframe').getAttribute('src') | ||
assert.equal(iframeSrc, 'https://player.vimeo.com/video/1084537?autoplay=1#t=97') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.