Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
autoradio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ale
autoradio
Commits
b35a4ec2
Commit
b35a4ec2
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Add a test that the player page renders correctly
parent
401149e2
Branches
Branches containing commit
No related tags found
1 merge request
!14
Add an HTML audio player
Pipeline
#11806
passed
4 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
node/bindata.go
+3
-3
3 additions, 3 deletions
node/bindata.go
node/node_test.go
+14
-3
14 additions, 3 deletions
node/node_test.go
with
17 additions
and
6 deletions
node/bindata.go
+
3
−
3
View file @
b35a4ec2
...
...
@@ -397,7 +397,7 @@ func staticCssPlayerCssBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/css/player.css.br", size: 695, mode: os.FileMode(420), modTime: time.Unix(16123438
32
, 0)}
info := bindataFileInfo{name: "static/css/player.css.br", size: 695, mode: os.FileMode(420), modTime: time.Unix(161234
52
38, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
...
...
@@ -776,7 +776,7 @@ func staticJsPlayerJsBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/js/player.js.br", size: 370, mode: os.FileMode(420), modTime: time.Unix(161234
4201
, 0)}
info := bindataFileInfo{name: "static/js/player.js.br", size: 370, mode: os.FileMode(420), modTime: time.Unix(161234
5238
, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
...
...
@@ -851,7 +851,7 @@ func staticSpeakerSvgBr() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "static/speaker.svg.br", size: 278, mode: os.FileMode(420), modTime: time.Unix(161234
1006
, 0)}
info := bindataFileInfo{name: "static/speaker.svg.br", size: 278, mode: os.FileMode(420), modTime: time.Unix(161234
5238
, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
...
...
This diff is collapsed.
Click to expand it.
node/node_test.go
+
14
−
3
View file @
b35a4ec2
...
...
@@ -128,10 +128,21 @@ func TestNode_StatusPage(t *testing.T) {
resp
,
err
:=
http
.
Get
(
httpSrv
.
URL
)
if
err
!=
nil
{
t
.
Fatalf
(
"http.Get error: %v"
,
err
)
t
.
Fatalf
(
"http.Get
(/)
error: %v"
,
err
)
}
defer
resp
.
Body
.
Close
()
resp
.
Body
.
Close
()
if
resp
.
StatusCode
!=
200
{
t
.
Fatalf
(
"
HTTP response
: %s"
,
resp
.
Status
)
t
.
Fatalf
(
"
http.Get(/) error: HTTP
: %s"
,
resp
.
Status
)
}
// Also check the player page.
resp
,
err
=
http
.
Get
(
httpSrv
.
URL
+
"/player/test.ogg"
)
if
err
!=
nil
{
t
.
Fatalf
(
"http.Get(/player/) error: %v"
,
err
)
}
resp
.
Body
.
Close
()
if
resp
.
StatusCode
!=
200
{
t
.
Fatalf
(
"http.Get(/player/) error: HTTP: %s"
,
resp
.
Status
)
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment