Update tests

This commit is contained in:
Alessandro Ranellucci 2013-03-09 22:05:41 +01:00
parent e9c7460c11
commit 06a592f25e
3 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,8 @@ use Slic3r::Test;
1; 1;
}; };
$config->set('layer_gcode', '_MY_CUSTOM_GCODE_'); $config->set('start_gcode', '_MY_CUSTOM_START_GCODE_'); # to avoid dealing with the nozzle lift in start G-code
$config->set('layer_gcode', '_MY_CUSTOM_LAYER_GCODE_');
ok $test->(), "custom layer G-code is applied after Z move and before other moves"; ok $test->(), "custom layer G-code is applied after Z move and before other moves";
} }

View File

@ -42,6 +42,7 @@ my $test = sub {
1; 1;
}; };
$config->set('start_gcode', ''); # to avoid dealing with the nozzle lift in start G-code
$config->set('layer_height', 0.3); $config->set('layer_height', 0.3);
$config->set('first_layer_height', 0.2); $config->set('first_layer_height', 0.2);
ok $test->(), "absolute first layer height"; ok $test->(), "absolute first layer height";

View File

@ -87,6 +87,7 @@ my $test = sub {
1; 1;
}; };
$config->set('start_gcode', ''); # to avoid dealing with the nozzle lift in start G-code
$config->set('retract_length', [1.5]); $config->set('retract_length', [1.5]);
$config->set('retract_before_travel', [3]); $config->set('retract_before_travel', [3]);
$config->set('only_retract_when_crossing_perimeters', 0); $config->set('only_retract_when_crossing_perimeters', 0);