Fix test win64b: test_run('graphics', 'contour2d')
[scilab.git] / scilab / modules / graphics / tests / nonreg_tests / bug_4108.dia.ref
index 700fc6d..afc8373 100644 (file)
 // Argument location of function caption has no effect.
 //
 legend_positions = ["in_upper_right", "in_upper_left", "in_lower_right",..
-                    "in_lower_left", "out_upper_right", "out_upper_left",..
-                                       "out_lower_right", "out_lower_left", "upper_caption",..
-                                       "lower_caption", "by_coordinates"];
+"in_lower_left", "out_upper_right", "out_upper_left",..
+"out_lower_right", "out_lower_left", "upper_caption",..
+"lower_caption", "by_coordinates"];
 x = 1:10;
-plot(x,[x;x^2]);
+plot(x,[x;x.^2]);
 curves = gce();
 // check all cases
 for loc = legend_positions,
-  captions(curves.children, ["x","x^2"], loc);
-  leg = gce();
-  if (leg.legend_location <> loc) then bugmes();quit;end
+    captions(curves.children, ["x","x.^2"], loc);
+    leg = gce();
+    assert_checktrue(leg.legend_location == loc);
 end