name: "JavaScript Expression Evaluation Test"
description: "Verifies expression evaluation in debug context"
target:
program: "../fixtures/simple.js"
args: []
adapter: "js-debug"
stop_on_entry: true
steps:
- action: command
command: "break simple.js:30"
expect:
success: true
- action: command
command: "continue"
- action: await
timeout: 15
expect:
reason: "breakpoint"
- action: command
command: "eval x"
expect:
success: true
output_contains: "10"
- action: command
command: "eval x + y"
expect:
success: true
output_contains: "30"
- action: command
command: "eval add(5, 3)"
expect:
success: true
output_contains: "8"
- action: command
command: "eval obj.name"
expect:
success: true
output_contains: "test"
- action: command
command: "eval arr[1]"
expect:
success: true
output_contains: "2"
- action: command
command: "eval message.toUpperCase()"
expect:
success: true
output_contains: "HELLO"
- action: command
command: "continue"
- action: await
timeout: 10
expect:
reason: "terminated"