1 ! Copyright (C) 2014 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: calendar subrip-subtitles tools.test ;
4 IN: subrip-subtitles.tests
10 { begin-time T{ duration { second 10.5 } } }
11 { end-time T{ duration { second 13.0 } } }
12 { text "Elephant's Dream" }
16 { begin-time T{ duration { second 15.0 } } }
17 { end-time T{ duration { second 18.0 } } }
18 { text "At the left we can see..." }
23 00:00:10,500 --> 00:00:13,000
27 00:00:15,000 --> 00:00:18,000
28 At the left we can see..."""
36 { begin-time T{ duration { second 10.5 } } }
37 { end-time T{ duration { second 13.0 } } }
38 { rect { { 63 43 } { 223 58 } } }
39 { text "<i>Elephant's Dream</i>" }
43 { begin-time T{ duration { second 15.0 } } }
44 { end-time T{ duration { second 18.0 } } }
45 { rect { { 53 438 } { 303 453 } } }
47 "<font color=\"cyan\">At the left we can see...</font>"
53 00:00:10,500 --> 00:00:13,000 X1:63 X2:223 Y1:43 Y2:58
54 <i>Elephant's Dream</i>
57 00:00:15,000 --> 00:00:18,000 X1:53 X2:303 Y1:438 Y2:453
58 <font color="cyan">At the left we can see...</font>"""