<commit_before>/* globals testsuite */
(function() {
    var mediaIns = null;
    testsuite('toast.Media', 'getInstance()', function(report) {
        try {
            mediaIns = toast.Media.getInstance();
            report('Success: toast.Media.getInstance()');
        } catch (err){
            report('Error: ' + JSON.stringify(err));
        }
    });
    testsuite('toast.Media', 'open()', function(report) {
        try {
            mediaIns.open('http://media.w3.org/2010/05/sintel/trailer.mp4');
            report('Success: toast.Media.open(\'http://media.w3.org/2010/05/sintel/trailer.mp4\')');
        } catch(err){
            report('Error: ' + JSON.stringify(err));
        }
    });
    testsuite('toast.Media', 'getContainerElement()', function(report) {
        try {
            var elContainer = mediaIns.getContainerElement();
            elContainer.style.left = '0px';
            elContainer.style.top = '0px';<commit_msg>#15 add media audio sample test<commit_after>/* globals testsuite */
(function() {
    var mediaIns = null;
    testsuite('toast.Media', 'getInstance()', function(report) {
        try {
            mediaIns = toast.Media.getInstance();
            report('Success: toast.Media.getInstance()');
        } catch (err){
            report('Error: ' + JSON.stringify(err));
        }
    });
    testsuite('toast.Media', 'open() -> \'SampleVideo\' ', function(report) {
        try {
            mediaIns.open('http://media.w3.org/2010/05/sintel/trailer.mp4');
            report('Success: toast.Media.open(\'http://media.w3.org/2010/05/sintel/trailer.mp4\')');
        } catch(err){
            report('Error: ' + JSON.stringify(err));
        }
    });
    testsuite('toast.Media', 'open() -> \'SampleAudio\' ', function(report) {
        try {
            mediaIns.open('http://media.w3.org/2010/07/bunny/04-Death_Becomes_Fur.mp3');
            report('Success: toast.Media.open(\'http://media.w3.org/2010/07/bunny/04-Death_Becomes_Fur.mp3\')');
        } catch(err){
            report('Error: ' + JSON.stringify(err));
        }
    });
    testsuite('toast.Media', 'getContainerElement()', function(report) {
        try {
            var elContainer = mediaIns.getContainerElement();
            elContainer.style.left = '0px';
            elContainer.style.top = '0px';
{'fraction_non_alphanumeric': 0.17864829961256995, 'fraction_numerical': 0.02496771416272062, 'mean_word_length': 2.2824858757062145, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3096765', 'n_tokens_mistral': 746, 'n_tokens_neox': 708, 'n_words': 96}