re-slice test can run and is passing

This commit is contained in:
LarsBrubaker 2020-05-16 09:31:54 -07:00
parent c66d6d44db
commit 1cd758c2c1
3 changed files with 4 additions and 3 deletions

View file

@ -2936,6 +2936,8 @@ namespace MatterHackers.MatterControl
}
}
public bool Allow32BitReSlice { get; set; }
/// <summary>
/// Archives MCX and validates GCode results before starting a print operation
/// </summary>

View file

@ -674,7 +674,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
bottomRow.AddChild(timeContainer);
// we can only reslice on 64 bit, because in 64 bit we always have the gcode loaded
if (IntPtr.Size == 8)
if (IntPtr.Size == 8 || ApplicationController.Instance.Allow32BitReSlice)
{
var resliceButton = new TextButton("Re-Slice", theme)
{

View file

@ -49,14 +49,13 @@ namespace MatterHackers.MatterControl.Tests.Automation
[Test, Category("Emulator")]
public async Task ReSliceHasCorrectEPositions()
{
Assert.AreEqual(8, IntPtr.Size, "Test requires 64bit environment as Reslice is disabled in 32bit");
await MatterControlUtilities.RunTest((testRunner) =>
{
// testRunner.ClickByName("Connection Wizard Skip Sign In Button");
using (var emulator = testRunner.LaunchAndConnectToPrinterEmulator())
{
ApplicationController.Instance.Allow32BitReSlice = true;
var printer = testRunner.FirstPrinter();
printer.Settings.SetValue(SettingsKey.enable_line_splitting, "0");