File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,28 @@ fn test_is_empty() {
137137}
138138
139139#[ test]
140+ #[ ignore] // TODO: The atom parsing internals are not exposed yet
140141fn test_update_stco ( ) {
141- todo ! ( "We don't update stco atoms" )
142+ let mut file = temp_file ! ( "no-tags.3g2" ) ;
143+
144+ {
145+ let mut f = Mp4File :: read_from ( & mut file, ParseOptions :: new ( ) ) . unwrap ( ) ;
146+ file. rewind ( ) . unwrap ( ) ;
147+
148+ let mut tag = Ilst :: default ( ) ;
149+ tag. set_artist ( "X" . repeat ( 3000 ) ) ;
150+ f. set_ilst ( tag) ;
151+
152+ // Find and collect all `stco` offsets
153+
154+ f. save_to ( & mut file) . unwrap ( ) ;
155+ }
156+ file. rewind ( ) . unwrap ( ) ;
157+ {
158+ let _f = Mp4File :: read_from ( & mut file, ParseOptions :: new ( ) ) . unwrap ( ) ;
159+
160+ // Find and collect all `stco` offsets, compare with previous
161+ }
142162}
143163
144164#[ test]
You can’t perform that action at this time.
0 commit comments