Fix test after https://codereview.scilab.org/#/c/13213/ (test_run graphics bug_4964)
[scilab.git] / scilab / modules / graphics / tests / nonreg_tests / bug_4964.dia.ref
index 2c767e6..30db771 100644 (file)
 //
 // <-- Short Description -->
 //   set or get 'format_n' property from an axes crash scilab.
-plot2d(1:10,1:10,1,"020")
+plot2d(1:10,1:10,1,strf="020")
 drawaxis(x=2:7,y=4,dir='u',tics='v')
 e=gce();
-e.format_n
- ans  =
-    
-e.format_n='%0.0fcm'
+assert_checkequal(e.format_n, "");
+// Check that the display does not crash
+e.format_n = "%0.0fcm"
  e  =
  
 Handle of type "Axis" with properties:
@@ -35,9 +33,14 @@ tics_segment = "on"
 tics_style = "v"
 sub_tics = 2
 tics_labels = ["2cm","3cm","4cm","5cm","6cm","7cm"]
+format_n = "%0.0fcm"
 labels_font_size = 0
 labels_font_color = -1
+labels_font_style = 6
 fractional_font = "off"
 clip_state = "off"
 clip_box = []
 user_data = []
+tag = 
+assert_checkequal(e.format_n, "%0.0fcm");
+assert_checkequal(e.tics_labels, string(2:7)+"cm");