Fix embed button outline
authorChocobozzz <me@florianbigard.com>
Fri, 19 Jan 2018 08:15:42 +0000 (09:15 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 19 Jan 2018 08:15:42 +0000 (09:15 +0100)
client/src/sass/video-js-custom.scss
server/tests/cli/update-host.ts

index 0d615d664837173e212470712bd80fd46e55aa16..351ef21cdd7b6a36acc878af70c9298b1da0255b 100644 (file)
@@ -37,6 +37,11 @@ $control-bar-height: 34px;
     margin-left: -($big-play-width / 2);
     margin-top: -($big-play-height / 2);
     background-color: transparent !important;
+
+    &::-moz-focus-inner {
+      border: 0;
+      padding: 0
+    }
   }
 
   &.vjs-has-started .vjs-big-play-button {
index 4358f28e303914842da63b314893d19d1375eaa6..39242c494cde3f027f7053d5d196c6eac95f0087 100644 (file)
@@ -1,3 +1,5 @@
+/* tslint:disable:no-unused-expression */
+
 import 'mocha'
 import * as chai from 'chai'
 const expect = chai.expect
@@ -66,7 +68,12 @@ describe('Test update host scripts', function () {
         expect(file.magnetUri).to.contain('localhost%3A9002%2Fstatic%2Fwebseed%2F')
 
         const torrent = await parseTorrentVideo(server, videoDetails.uuid, file.resolution)
-        expect(torrent.announce[0]).to.equal('ws://localhost:9002/tracker/socket')
+        const announceWS = torrent.announce.find(a => a === 'ws://localhost:9002/tracker/socket')
+        expect(announceWS).to.not.be.undefined
+
+        const announceHttp = torrent.announce.find(a => a === 'http://localhost:9002/tracker/announce')
+        expect(announceHttp).to.not.be.undefined
+
         expect(torrent.urlList[0]).to.contain('http://localhost:9002/static/webseed')
       }
     }