update bug_12083 test 40/11140/1
Antoine ELIAS [Thu, 28 Mar 2013 13:13:48 +0000 (14:13 +0100)]
Change-Id: I40b1c54963c3ecad3b6670f9067c862785514317

scilab/modules/io/tests/nonreg_tests/bug_12083.tst

index ff626d6..1cca050 100644 (file)
 
 plot3d();
 f=gcf();
+f.children.sub_ticks = [1 1 4];
+path = fullpath(TMPDIR + "/../");
+xs2bmp(f, path + "original.bmp");
+original_md5 = getmd5(path + "original.bmp");
+//deletefile(path + "original.bmp");
 
-//save f, gcf, %_plot3d, ...
-save(fullfile(SCIHOME, "bug_12083.sod"));
+//save f, gcf, %_plot3d, original_md5 ...
+save(path + "bug_12083.sod");
 
 //close Scilab and retart it
-load(fullfile(SCIHOME, "bug_12083.sod"));
+path = fullpath(TMPDIR + "/../");
+load(path + "bug_12083.sod");
+deletefile(path + "bug_12083.sod");
 f=gcf();
-assert_checkequal(f.children(1).children(1).type, "Plot3d");
-mdelete(fullfile(SCIHOME, "bug_12083.sod"));
\ No newline at end of file
+xs2bmp(f, path + "restored.bmp");
+restored_md5 = getmd5(path + "restored.bmp");
+//deletefile(path + "restored.bmp");
+f.children
+
+assert_checkequal(original_md5, restored_md5);
\ No newline at end of file