Changeset View
Changeset View
Standalone View
Standalone View
unittests/atcoretests.cpp
Show First 20 Lines • Show All 191 Lines • ▼ Show 20 Line(s) | 188 | { | |||
---|---|---|---|---|---|
192 | core->firmwarePlugin()->validateCommand(QStringLiteral("other text")); | 192 | core->firmwarePlugin()->validateCommand(QStringLiteral("other text")); | ||
193 | QVERIFY(sSpy.count() == 1); | 193 | QVERIFY(sSpy.count() == 1); | ||
194 | } | 194 | } | ||
195 | 195 | | |||
196 | void AtCoreTests::testPluginGrbl_translate() | 196 | void AtCoreTests::testPluginGrbl_translate() | ||
197 | { | 197 | { | ||
198 | QVERIFY(core->firmwarePlugin()->translate(QStringLiteral("G28")) == "G28"); | 198 | QVERIFY(core->firmwarePlugin()->translate(QStringLiteral("G28")) == "G28"); | ||
199 | QVERIFY(core->firmwarePlugin()->translate(QStringLiteral("M104 S50 G28 X")) == "M104 S50\r\nG28 X"); | 199 | QVERIFY(core->firmwarePlugin()->translate(QStringLiteral("M104 S50 G28 X")) == "M104 S50\r\nG28 X"); | ||
200 | QVERIFY(core->firmwarePlugin()->translate(QStringLiteral("G00 G43 H0 Z0.1")) == "G00\r\nG43 H0 Z0.1"); | 200 | QVERIFY(core->firmwarePlugin()->translate(QStringLiteral("G00 G43 H0 Z0.1")) == "G00\r\nG43 H0 Z0.1"); | ||
201 | QVERIFY(core->firmwarePlugin()->translate(QStringLiteral("M6 T0")) == "M6 T0"); | 201 | QVERIFY(core->firmwarePlugin()->translate(QStringLiteral("M6 T0")) == "M6 T0"); | ||
202 | 202 | QVERIFY(core->firmwarePlugin()->translate(QStringLiteral("G0 G49 G40 G17 G80 G50 G90")) == "G0\r\nG49\r\nG40\r\nG17\r\nG80\r\nG50\r\nG90"); | |||
203 | QVERIFY(core->firmwarePlugin()->translate(QStringLiteral("G0 S49 XY G40")) == "G0 S49 XY\r\nG40"); | ||||
203 | } | 204 | } | ||
204 | 205 | | |||
205 | void AtCoreTests::testPluginMarlin_load() | 206 | void AtCoreTests::testPluginMarlin_load() | ||
206 | { | 207 | { | ||
207 | core->loadFirmwarePlugin(QStringLiteral("marlin")); | 208 | core->loadFirmwarePlugin(QStringLiteral("marlin")); | ||
208 | QVERIFY(core->firmwarePlugin()->name() == QStringLiteral("Marlin")); | 209 | QVERIFY(core->firmwarePlugin()->name() == QStringLiteral("Marlin")); | ||
209 | } | 210 | } | ||
210 | 211 | | |||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |