From: Behdad Esfahbod Date: Sat, 14 May 2011 03:04:46 +0000 (-0400) Subject: [test/ot-tag] More tests X-Git-Tag: 2.0_alpha~7^2~166 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=065fb38c9a338ddb095f2ec9e034fcc5a02167bd;p=apps%2Fcore%2Fpreloaded%2Fvideo-player.git [test/ot-tag] More tests --- diff --git a/test/test-ot-tag.c b/test/test-ot-tag.c index bae0af5..d440dbd 100644 --- a/test/test-ot-tag.c +++ b/test/test-ot-tag.c @@ -208,8 +208,17 @@ test_ot_tag_language (void) test_language_two_way ("ABC", "x-hbotabc"); test_tag_from_language ("ABC", "asdf-asdf-wer-x-hbotabc-zxc"); + test_tag_from_language ("ABC", "asdf-asdf-wer-x-hbotabc"); + test_tag_from_language ("ABCD", "asdf-asdf-wer-x-hbotabcd"); test_tag_from_language ("dflt", "asdf-asdf-wer-x-hbot-zxc"); + + /* Test that x-hbot overrides the base language */ + test_tag_from_language ("ABC", "fa-x-hbotabc-zxc"); + test_tag_from_language ("ABC", "fa-ir-x-hbotabc-zxc"); + test_tag_from_language ("ABC", "zh-x-hbotabc-zxc"); + test_tag_from_language ("ABC", "zh-cn-x-hbotabc-zxc"); + test_tag_from_language ("ABC", "zh-xy-x-hbotabc-zxc"); } int