Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
0a569b76
Commit
0a569b76
authored
Jul 26, 2017
by
Steel Wagstaff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up media-embedder tests
Cleaned up media-embedder tests
parent
0c6d9e79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
media-embedder-test.js
src/sidebar/test/media-embedder-test.js
+3
-3
No files found.
src/sidebar/test/media-embedder-test.js
View file @
0a569b76
...
...
@@ -93,8 +93,8 @@ describe('media-embedder', function () {
it
(
'replaces mp3 links with html5 audio elements'
,
function
()
{
var
urls
=
[
'https://archive.org/download/testmp3testfile/mpthreetest.mp3'
,
'https://archive.org/download/testmp3testfile/mpthreetest.mp3#fragment'
,
'https://archive.org/download/testmp3testfile/mpthreetest.mp3?q=foo&id=bar'
,
'https://archive.org/download/testmp3testfile/mpthreetest.mp3?foo=bar&id=1'
];
urls
.
forEach
(
function
(
url
)
{
var
element
=
domElement
(
'<a href="'
+
url
+
'">'
+
url
+
'</a>'
);
...
...
@@ -111,8 +111,8 @@ describe('media-embedder', function () {
it
(
'replaces ogg links with html5 audio elements'
,
function
()
{
var
urls
=
[
'https://www.w3schools.com/html/horse.ogg'
,
'https://www.w3schools.com/html/horse.ogg#fragment'
,
'https://www.w3schools.com/html/horse.ogg?q=foo&id=bar'
,
'https://www.w3schools.com/html/horse.ogg?foo=bar&id=1'
,
];
urls
.
forEach
(
function
(
url
)
{
var
element
=
domElement
(
'<a href="'
+
url
+
'">'
+
url
+
'</a>'
);
...
...
@@ -129,8 +129,8 @@ describe('media-embedder', function () {
it
(
'replaces wav links with html5 audio elements'
,
function
()
{
var
urls
=
[
'http://freewavesamples.com/files/Kurzweil-K2000-Dual-Bass-C1.wav'
,
'http://freewavesamples.com/files/Kurzweil-K2000-Dual-Bass-C1.wav#fragment'
,
'http://freewavesamples.com/files/Kurzweil-K2000-Dual-Bass-C1.wav?q=foo&id=bar'
,
'http://freewavesamples.com/files/Kurzweil-K2000-Dual-Bass-C1.wav?foo=bar&id=1'
,
];
urls
.
forEach
(
function
(
url
)
{
var
element
=
domElement
(
'<a href="'
+
url
+
'">'
+
url
+
'</a>'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment