Skip to content

Commit

Permalink
Test: Update tests for overrides and bitbake operators
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonZiweiWang committed Dec 22, 2023
1 parent d117c28 commit 1a1ebc8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions client/test/grammars/test-cases/bitbake-operator.bb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# SYNTAX TEST "source.bb" "bitbake-operators"

>KBRANCH:append
# ^^^^^^ source.bb keyword.other.bitbake-operator.bb
# ^^^^^^ source.bb keyword.control.bb

>KBRANCH:prepend
# ^^^^^^^ source.bb keyword.other.bitbake-operator.bb
# ^^^^^^^ source.bb keyword.control.bb

>KBRANCH:remove
# ^^^^^^ source.bb keyword.other.bitbake-operator.bb
# ^^^^^^ source.bb keyword.control.bb


>python do_foo:append() {
Expand Down
2 changes: 1 addition & 1 deletion client/test/grammars/test-cases/variables.bb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
>FOO:remove = "${FOOREMOVE}"
#^^^ source.bb variable.other.names.bb
# ^^^^^^^^^ source.bb string.quoted.double.bb variable.other.names.bb
# ^^^^^^ source.bb keyword.other.bitbake-operator.bb - variable.other.names.bb
# ^^^^^^ source.bb keyword.control.bb - variable.other.names.bb

>myfunc (var = '123', var2 = 123) {}
# ^^^ source.bb variable.other.names.bb
Expand Down
2 changes: 1 addition & 1 deletion server/src/__tests__/fixtures/semanticTokens.bb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FOO = 'FOO'

MYVAR:append = '${FOO}'
MYVAR:append:myoverride = '${FOO}'

do_build () {
echo 'do build'
Expand Down
6 changes: 3 additions & 3 deletions server/src/__tests__/semanticTokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ describe('Semantic tokens', () => {
},
{
line: 2,
startCharacter: 18,
startCharacter: 29,
length: 3,
tokenType: TOKEN_LEGEND.types.variable,
tokenModifiers: [TOKEN_LEGEND.modifiers.declaration]
},
{
line: 2,
startCharacter: 5,
length: 7,
startCharacter: 13,
length: 10,
tokenType: TOKEN_LEGEND.types.operator,
tokenModifiers: [TOKEN_LEGEND.modifiers.readonly]
},
Expand Down

0 comments on commit 1a1ebc8

Please sign in to comment.