-
Notifications
You must be signed in to change notification settings - Fork 94
/
test.js
62 lines (46 loc) · 2.13 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
var TestRunner = require("../../test-runner.js"),
test = new TestRunner();
describe("cue-settings/align tests", function(){
before(function(onDone) {
test.init(onDone);
});
after(function() {
test.shutdown();
});
it("bad-align.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/bad-align.vtt", "cue-settings/align/bad-align.json", onDone);
});
it("bad-delimiter.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/bad-delimiter.vtt", "cue-settings/align/bad-align.json", onDone);
});
it("bogus-value.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/bogus-value.vtt", "cue-settings/align/bad-align.json", onDone);
});
it("capital-keyword.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/capital-keyword.vtt", "cue-settings/align/bad-align.json", onDone);
});
it("keyword-end.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/keyword-end.vtt", "cue-settings/align/keyword-end.json", onDone);
});
it("keyword-left.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/keyword-left.vtt", "cue-settings/align/keyword-left.json", onDone);
});
it("keyword-middle.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/keyword-middle.vtt", "cue-settings/align/keyword-middle.json", onDone);
});
it("keyword-right.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/keyword-right.vtt", "cue-settings/align/keyword-right.json", onDone);
});
it("keyword-start.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/keyword-start.vtt", "cue-settings/align/keyword-start.json", onDone);
});
it("no-value.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/no-value.vtt", "cue-settings/align/bad-align.json", onDone);
});
it("space-after-delimiter.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/space-after-delimiter.vtt", "cue-settings/align/bad-align.json", onDone);
});
it("space-before-delimiter.vtt", function(onDone){
test.jsonEqualAll("cue-settings/align/space-before-delimiter.vtt", "cue-settings/align/bad-align.json", onDone);
});
});