Ticket #45615: 45615-tests.diff
| File 45615-tests.diff, 4.1 KB (added by , 7 years ago) |
|---|
-
tests/phpunit/data/uploads/test.csv
1 "country","country group","name (en)","name (fr)","name (de)","latitude","longitude" 2 "at","eu","Austria","Autriche","Österreich","47.6965545","13.34598005" 3 "be","eu","Belgium","Belgique","Belgien","50.501045","4.47667405" 4 "bg","eu","Bulgaria","Bulgarie","Bulgarien","42.72567375","25.4823218" 5 No newline at end of file -
tests/phpunit/data/uploads/test.dfxp
1 <tt xml:lang="" xmlns="http://www.w3.org/2006/04/ttaf1"> 2 <head> 3 <metadata/> 4 <styling/> 5 <layout/> 6 </head> 7 <body/> 8 </tt> 9 No newline at end of file -
tests/phpunit/data/uploads/test.tsv
1 sample tsv file 1 2 some text here 2 3 yup it's text 3 4 No newline at end of file -
tests/phpunit/data/uploads/test.vtt
1 WEBVTT 2 3 00:11.000 --> 00:13.000 4 <v Roger Bingham>We are in New York City 5 6 00:13.000 --> 00:16.000 7 <v Roger Bingham>We’re actually at the Lucern Hotel, just down the street 8 9 00:16.000 --> 00:18.000 10 <v Roger Bingham>from the American Museum of Natural History 11 12 00:18.000 --> 00:20.000 13 <v Roger Bingham>And with me is Neil deGrasse Tyson 14 15 00:20.000 --> 00:22.000 16 <v Roger Bingham>Astrophysicist, Director of the Hayden Planetarium 17 18 00:22.000 --> 00:24.000 19 <v Roger Bingham>at the AMNH. 20 21 00:24.000 --> 00:26.000 22 <v Roger Bingham>Thank you for walking down here. 23 24 00:27.000 --> 00:30.000 25 <v Roger Bingham>And I want to do a follow-up on the last conversation we did. 26 27 00:30.000 --> 00:31.500 align:right size:50% 28 <v Roger Bingham>When we e-mailed— 29 30 00:30.500 --> 00:32.500 align:left size:50% 31 <v Neil deGrasse Tyson>Didn’t we talk about enough in that conversation? 32 33 00:32.000 --> 00:35.500 align:right size:50% 34 <v Roger Bingham>No! No no no no; 'cos 'cos obviously 'cos 35 36 00:32.500 --> 00:33.500 align:left size:50% 37 <v Neil deGrasse Tyson><i>Laughs</i> 38 39 00:35.500 --> 00:38.000 40 <v Roger Bingham>You know I’m so excited my glasses are falling off here. 41 No newline at end of file -
tests/phpunit/tests/functions.php
1150 1150 'proper_filename' => false, 1151 1151 ), 1152 1152 ), 1153 // Non-image file not allowed even if it's named like one. 1154 array( 1155 DIR_TESTDATA . '/export/crazy-cdata.xml', 1156 'crazy-cdata.jpg', 1157 array( 1158 'ext' => false, 1159 'type' => false, 1160 'proper_filename' => false, 1161 ), 1162 ), 1163 // Non-image file not allowed if it's named like something else. 1164 array( 1165 DIR_TESTDATA . '/export/crazy-cdata.xml', 1166 'crazy-cdata.doc', 1167 array( 1168 'ext' => false, 1169 'type' => false, 1170 'proper_filename' => false, 1171 ), 1172 ), 1173 // Assorted text/* sample files 1174 array( 1175 DIR_TESTDATA . '/uploads/test.vtt', 1176 'test.vtt', 1177 array( 1178 'ext' => 'vtt', 1179 'type' => 'text/vtt', 1180 'proper_filename' => false, 1181 ), 1182 ), 1183 array( 1184 DIR_TESTDATA . '/uploads/test.dfxp', 1185 'test.dfxp', 1186 array( 1187 'ext' => 'dfxp', 1188 'type' => 'text/dfxp', 1189 'proper_filename' => false, 1190 ), 1191 ), 1192 array( 1193 DIR_TESTDATA . '/uploads/test.csv', 1194 'test.csv', 1195 array( 1196 'ext' => 'csv', 1197 'type' => 'text/csv', 1198 'proper_filename' => false, 1199 ), 1200 ), 1153 1201 ); 1154 1202 1155 1203 // Test a few additional file types on single sites.