diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-06-01 17:10:16 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-06-01 17:10:16 +0200 |
| commit | 4d5d4d96ef3314d3242807c4e610565b769414ee (patch) | |
| tree | bcec645f1970c9959134902df41e75f5b2a8d334 /test/hints_test.cc | |
| parent | 1b348977ecc0a8fa31135bf2d554c3d25bafaa2f (diff) | |
Add hint when no audio language is set (#2033).
Diffstat (limited to 'test/hints_test.cc')
| -rw-r--r-- | test/hints_test.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/hints_test.cc b/test/hints_test.cc index 16d130f22..263f02435 100644 --- a/test/hints_test.cc +++ b/test/hints_test.cc @@ -19,6 +19,7 @@ */ +#include "lib/audio_content.h" #include "lib/content.h" #include "lib/content_factory.h" #include "lib/cross.h" @@ -237,3 +238,20 @@ BOOST_AUTO_TEST_CASE (hints_destroyed_while_running) dcpomatic_sleep_seconds (1); } + +BOOST_AUTO_TEST_CASE (hints_audio_with_no_language) +{ + auto content = content_factory("test/data/sine_440.wav").front(); + auto film = new_test_film2 ("hints_audio_with_no_language", { content }); + content->audio->set_gain (-6); + + auto hints = get_hints (film); + BOOST_REQUIRE_EQUAL (hints.size(), 1U); + BOOST_CHECK_EQUAL ( + hints[0], + "Some of your content has audio but you have not set the audio language. It is advisable to set the audio language " + "in the \"DCP\" tab unless your audio has no spoken parts." + ); + +} + |
