Update KCL in JS project
This commit is contained in:
@ -58,7 +58,13 @@ test.describe('Testing constraints', { tag: ['@skipWin'] }, () => {
|
||||
.click()
|
||||
|
||||
await expect(page.locator('.cm-content')).toHaveText(
|
||||
<<<<<<< HEAD
|
||||
`length001 = 20sketch001 = startSketchOn(XY) |> startProfileAt([-10, -10], %) |> line(end = [20, 0]) |> angledLine([90, length001], %) |> xLine(length = -20)`
|
||||
||||||| parent of bcbec9f87 (Update KCL in JS project)
|
||||
`length001 = 20sketch001 = startSketchOn('XY') |> startProfileAt([-10, -10], %) |> line(end = [20, 0]) |> angledLine([90, length001], %) |> xLine(length = -20)`
|
||||
=======
|
||||
`length001 = 20sketch001 = startSketchOn('XY') |> startProfileAt([-10, -10], %) |> line(end = [20, 0]) |> angledLine(angle = 90, length = length001) |> xLine(length = -20)`
|
||||
>>>>>>> bcbec9f87 (Update KCL in JS project)
|
||||
)
|
||||
|
||||
// Make sure we didn't pop out of sketch mode.
|
||||
@ -87,7 +93,7 @@ test.describe('Testing constraints', { tag: ['@skipWin'] }, () => {
|
||||
|> startProfileAt([-7.54, -26.74], %)
|
||||
|> line(end = [74.36, 130.4], tag = $seg01)
|
||||
|> line(end = [78.92, -120.11])
|
||||
|> angledLine([segAng(seg01), yo], %)
|
||||
|> angledLine(angle = segAng(seg01), length = yo)
|
||||
|> line(end = [41.19, 58.97 + 5])
|
||||
part002 = startSketchOn(XZ)
|
||||
|> startProfileAt([299.05, 120], %)
|
||||
@ -152,7 +158,7 @@ test.describe('Testing constraints', { tag: ['@skipWin'] }, () => {
|
||||
|> startProfileAt([-7.54, -26.74], %)
|
||||
|> line(end = [74.36, 130.4], tag = $seg01)
|
||||
|> line(end = [78.92, -120.11])
|
||||
|> angledLine([segAng(seg01), 78.33], %)
|
||||
|> angledLine(angle = segAng(seg01), length = 78.33)
|
||||
|> line(end = [51.19, 48.97])
|
||||
part002 = startSketchOn(XZ)
|
||||
|> startProfileAt([299.05, 231.45], %)
|
||||
@ -542,7 +548,7 @@ test.describe('Testing constraints', { tag: ['@skipWin'] }, () => {
|
||||
// checking activeLines assures the cursors are where they should be
|
||||
const codeAfter = [
|
||||
'|> line(end = [74.36, 130.4], tag = $seg01)',
|
||||
`|> angledLine([${value}, 78.33], %)`,
|
||||
`|> angledLine(angle = ${value}, length = 78.33)`,
|
||||
]
|
||||
if (axisSelect) codeAfter.shift()
|
||||
|
||||
@ -831,11 +837,11 @@ part002 = startSketchOn(XZ)
|
||||
test.describe('Two segment - no modal constraints', () => {
|
||||
const cases = [
|
||||
{
|
||||
codeAfter: `|> angledLine([83, segLen(seg01)], %)`,
|
||||
codeAfter: `|> angledLine(angle = 83, length = segLen(seg01))`,
|
||||
constraintName: 'Equal Length',
|
||||
},
|
||||
{
|
||||
codeAfter: `|> angledLine([segAng(seg01), 78.33], %)`,
|
||||
codeAfter: `|> angledLine(angle = segAng(seg01), length = 78.33)`,
|
||||
constraintName: 'Parallel',
|
||||
},
|
||||
{
|
||||
@ -1150,7 +1156,7 @@ test.describe('Electron constraint tests', () => {
|
||||
await clickOnFirstSegmentLabel()
|
||||
await cmdBar.progressCmdBar()
|
||||
await editor.expectEditor.toContain('length001 = 15.3')
|
||||
await editor.expectEditor.toContain('|> angledLine([9, length001], %)')
|
||||
await editor.expectEditor.toContain('|> angledLine(angle = 9, length = length001)')
|
||||
})
|
||||
|
||||
await test.step('Double click again and expect failure', async () => {
|
||||
|
||||
Reference in New Issue
Block a user