Skip to content

Commit a18a11f

Browse files
committed
Add webm as audio-file-type so it gets 10MB limit
1 parent fa4a8c6 commit a18a11f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/LibChorus/FileTypeHandlers/audio/AudioFileTypeHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public IEnumerable<IChangeReport> DescribeInitialContents(FileInRevision fileInR
6868
/// <returns>A collection of extensions (without leading period (.)) that can be processed.</returns>
6969
public IEnumerable<string> GetExtensionsOfKnownTextFileTypes()
7070
{
71-
return new List<string> { "wav", "snd", "au", "aif", "aifc", "aiff", "wma", "mp3" };
71+
return new List<string> { "wav", "snd", "au", "aif", "aifc", "aiff", "wma", "mp3", "webm" };
7272
}
7373

7474
/// <summary>

src/LibChorusTests/FileHandlers/audio/AudioFileTypeHandlerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public void HandlerShouldProcessOnlyTenMegabyteSizedFiles()
3737
public void HandlerSupportsCorrectExtensions()
3838
{
3939
var extensions = _audioFileHandler.GetExtensionsOfKnownTextFileTypes().ToList();
40-
Assert.That(extensions.Count(), Is.EqualTo(8));
41-
var expectedExtensions = new HashSet<string> {"wav", "snd", "au", "aif", "aifc", "aiff", "wma", "mp3"};
40+
Assert.That(extensions.Count(), Is.EqualTo(9));
41+
var expectedExtensions = new HashSet<string> {"wav", "snd", "au", "aif", "aifc", "aiff", "wma", "mp3", "webm"};
4242
foreach (var expectedExtension in expectedExtensions)
4343
Assert.Contains(expectedExtension, extensions);
4444
}

0 commit comments

Comments
 (0)