diff --git a/Submodules/agg-sharp b/Submodules/agg-sharp index 80691d427..a93c6d342 160000 --- a/Submodules/agg-sharp +++ b/Submodules/agg-sharp @@ -1 +1 @@ -Subproject commit 80691d427aed19ef7578efa573cf3f0fd08030ee +Subproject commit a93c6d3427f9df9403aae1ad69b88bdf3aae5747 diff --git a/Tests/MatterControl.AutomationTests/PrintQueueTests.cs b/Tests/MatterControl.AutomationTests/PrintQueueTests.cs index 502dd8a13..56c3e21b5 100644 --- a/Tests/MatterControl.AutomationTests/PrintQueueTests.cs +++ b/Tests/MatterControl.AutomationTests/PrintQueueTests.cs @@ -27,12 +27,8 @@ of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project. */ -using System.Threading; using System.Threading.Tasks; -using MatterHackers.Agg.UI; -using MatterHackers.GuiAutomation; using MatterHackers.MatterControl.PartPreviewWindow; -using MatterHackers.MatterControl.PrintQueue; using NUnit.Framework; using TestInvoker; diff --git a/Tests/MatterControl.AutomationTests/PrintingTests.cs b/Tests/MatterControl.AutomationTests/PrintingTests.cs index b2711d8f9..a5726d043 100644 --- a/Tests/MatterControl.AutomationTests/PrintingTests.cs +++ b/Tests/MatterControl.AutomationTests/PrintingTests.cs @@ -518,13 +518,6 @@ namespace MatterHackers.MatterControl.Tests.Automation var printer = testRunner.FirstPrinter(); - // Wait for printing to complete - var printFinishedResetEvent = new AutoResetEvent(false); - printer.Connection.PrintFinished += (s, e) => - { - printFinishedResetEvent.Set(); - }; - testRunner.StartPrint(printer) .ScrollIntoView("Extrusion Multiplier NumberEdit") .ScrollIntoView("Feed Rate NumberEdit"); @@ -552,14 +545,13 @@ namespace MatterHackers.MatterControl.Tests.Automation testRunner.ResumePrint(); - // Wait up to 60 seconds for the print to finish - printFinishedResetEvent.WaitOne(60 * 1000); + // Wait up to 60 seconds for the print to finish + testRunner.WaitForPrintFinished(printer, 60); - // Values should match entered values - ConfirmExpectedSpeeds(testRunner, targetExtrusionRate, targetFeedRate, "After print finished"); + // Values should match entered values + ConfirmExpectedSpeeds(testRunner, targetExtrusionRate, targetFeedRate, "After print finished"); - testRunner.WaitForPrintFinished(printer) - .StartPrint(printer) // Restart the print + testRunner.StartPrint(printer) // Restart the print .Delay(1); // Values should match entered values diff --git a/Tests/MatterControl.Tests/MatterControl/InteractiveSceneTests.cs b/Tests/MatterControl.Tests/MatterControl/InteractiveSceneTests.cs index 67d1f418f..6be4c5538 100644 --- a/Tests/MatterControl.Tests/MatterControl/InteractiveSceneTests.cs +++ b/Tests/MatterControl.Tests/MatterControl/InteractiveSceneTests.cs @@ -44,6 +44,7 @@ using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading; using System.Threading.Tasks; +using TestInvoker; namespace MatterControl.Tests.MatterControl { @@ -393,7 +394,7 @@ namespace MatterControl.Tests.MatterControl var copy = cubeA1.Clone() as CubeObject3D; - Assert.AreEqual(10, copy.Width.Expression, "10"); + Assert.AreEqual("10", copy.Width.Expression, "10"); Assert.AreEqual(10, copy.GetAxisAlignedBoundingBox().XSize, .001); } } diff --git a/Tests/MatterControl.Tests/MatterControl/OemProfileTests.cs b/Tests/MatterControl.Tests/MatterControl/OemProfileTests.cs index fc3d57c6c..ca49a2aaf 100644 --- a/Tests/MatterControl.Tests/MatterControl/OemProfileTests.cs +++ b/Tests/MatterControl.Tests/MatterControl/OemProfileTests.cs @@ -1,13 +1,39 @@ -using System; +/* +Copyright (c) 2022, Lars Brubaker +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The views and conclusions contained in the software and documentation are those +of the authors and should not be interpreted as representing official policies, +either expressed or implied, of the FreeBSD Project. +*/ + +using System; using System.Collections.Generic; using System.IO; using System.Linq; -using MatterHackers.Agg; using MatterHackers.Agg.Platform; -using MatterHackers.MatterControl; using MatterHackers.MatterControl.SlicerConfiguration; using MatterHackers.MatterControl.Tests.Automation; -using Newtonsoft.Json; using NUnit.Framework; using TestInvoker; @@ -266,7 +292,7 @@ M300 S3000 P30 ; Resume Tone"; } - [Test, ChildProcessTest] + [Test] public void LayerGCodeHasExpectedValue() { // Verifies "layer_gcode" is expected value: "; LAYER:[layer_num]"