// ============================================================================= // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab // Copyright (C) 2008 - INRIA - Pierre MARECHAL // // This file is distributed under the same license as the Scilab package. // ============================================================================= // <-- NO CHECK ERROR OUTPUT --> // <-- NEED JVM --> // xmltohtml // TEST 1 (french help and english help are complete) // ============================================================================= tmpPath = TMPDIR + "/examples"; copyfile("SCI/modules/helptools/examples", tmpPath); my_module_path = pathconvert(tmpPath + "/example_1",%f,%f); // Build the french help setlanguage("fr_FR"); my_french_help_dir = my_module_path+"/help/fr_FR"; my_french_help_title = "TEST 1 [fr_FR]"; xmltohtml(my_french_help_dir,my_french_help_title,"fr_FR"); html_info = fileinfo(my_module_path+"/html/fr_FR/index.html"); if html_info == [] then pause, end // file existence clean_help(my_french_help_dir); // Build the english help setlanguage("en_US"); my_english_help_dir = my_module_path+"/help/en_US"; my_english_help_title = "TEST 1 [en_US]"; xmltohtml(my_english_help_dir,my_english_help_title,'en_US'); html_info = fileinfo(my_module_path+"/html/en_US/index.html"); if html_info == [] then pause, end // file existence clean_help(my_english_help_dir); // TEST 2 (example_2_function_2 and example_2_function_4 are missing in the // french help) // ============================================================================= my_module_path = pathconvert(tmpPath + "/example_2",%f,%f); // Build the french help setlanguage("fr_FR"); my_french_help_dir = my_module_path+"/help/fr_FR"; my_french_help_title = "TEST 2 [fr_FR]"; xmltohtml(my_french_help_dir,my_french_help_title,'fr_FR'); html_info = fileinfo(my_module_path+"/html/fr_FR/index.html"); if html_info == [] then pause, end // file existence clean_help(my_french_help_dir); // Build the english help setlanguage("en_US"); my_english_help_dir = my_module_path+"/help/en_US"; my_english_help_title = "TEST 2 [en_US]"; xmltohtml(my_english_help_dir,my_english_help_title,'en_US'); html_info = fileinfo(my_module_path+"/html/en_US/index.html"); if html_info == [] then pause, end // file existence clean_help(my_english_help_dir); // TEST 3 (example_3_function_3 and example_3_function_4 are missing in the // english help) // ============================================================================= my_module_path = pathconvert(tmpPath + "/example_3",%f,%f); // Build the french help setlanguage("fr_FR"); my_french_help_dir = my_module_path+"/help/fr_FR"; my_french_help_title = "TEST 3 [fr_FR]"; xmltohtml(my_french_help_dir,my_french_help_title,"fr_FR"); html_info = fileinfo(my_module_path+"/html/fr_FR/index.html"); if html_info == [] then pause, end // file existence clean_help(my_french_help_dir); // Build the english help setlanguage("en_US"); my_english_help_dir = my_module_path+"/help/en_US"; my_english_help_title = "TEST 3 [en_US]"; xmltohtml(my_english_help_dir,my_english_help_title,"en_US","fr_FR"); html_info = fileinfo(my_module_path+"/html/en_US/index.html"); if html_info == [] then pause, end // file existence clean_help(my_english_help_dir);