We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 905f787 commit 878cc51Copy full SHA for 878cc51
.travis.yml
@@ -4,10 +4,10 @@ dist: trusty
4
addons:
5
chrome: stable
6
node_js:
7
- - "10.3.0"
+ - "12.2.0"
8
before_install:
9
- npm install npm -g
10
before_script:
11
- npm install -g grunt-cli
12
script:
13
- - grunt ci
+ - npm run-sript ci
README.md
@@ -1,7 +1,6 @@
1
# CommentCoreLibrary 弹幕核心通用构件
2
[](http://badge.fury.io/js/comment-core-library)
3
[](http://badge.fury.io/bo/comment-core-library)
-[](http://gruntjs.com/)
[](http://opensource.org/licenses/MIT)
[](https://travis-ci.org/jabbany/CommentCoreLibrary)
[](https://coveralls.io/r/jabbany/CommentCoreLibrary?branch=master)
@@ -56,5 +55,3 @@ We encourage any contributions to this project, please read
56
55
Also, feel free to have a look at our sister project
57
[ABPlayerHTML5](https://github.com/jabbany/ABPlayerHTML5) for a reference
58
implementation of a video player with CommentCoreLibrary.
59
-
60
spec/CommentCoreLibrary_spec.coffee
@@ -60,7 +60,7 @@ describe 'CommentManager', ->
expect(manager.timeline).toEqual [c1, c2, c3, c4, c5]
61
62
it 'smoking test', ->
63
- sampleNormal =
+ sampleNormal =
64
"""
65
<?xml version="1.0" encoding="UTF-8"?><i>
66
<d p="15.104999542236,1,25,16777215,1388314569,0,1a87dd40,364586099">关了弹幕瞬间好多了</d>
@@ -89,14 +89,16 @@ describe 'CommentManager', ->
89
spy = sinon.spy manager, 'send'
90
manager.load [ c3, c4, c5 ]
91
manager.time 3
92
- expect(spy).toHaveBeenCalledThrice()
+ expect(spy).toHaveBeenCalledOnce()
93
+ expect(spy).toHaveBeenCalledWith([ c3, c4, c5 ])
94
95
it 'limits based on limiter', ->
96
97
98
manager.options.limit = 2
99
- expect(spy).toHaveBeenCalledTwice()
100
101
+ expect(spy).toHaveBeenCalledWith([ c3, c4 ])
102
103
it 'seeks if seek threshold is passed', ->
104
manager.load [ c1 ]
0 commit comments