feat(js): m10 extensions (pause, restart, speed-up via Frame) with tests
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
25141ce86d
commit
fd7c5f2acf
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"function": "keyToAction",
|
||||
"cases": [
|
||||
{
|
||||
"name": "space-toggles-pause",
|
||||
"args": [
|
||||
" "
|
||||
],
|
||||
"expected": {
|
||||
"tag": "TogglePause"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "r-restarts",
|
||||
"args": [
|
||||
"r"
|
||||
],
|
||||
"expected": {
|
||||
"tag": "Restart"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "R-restarts",
|
||||
"args": [
|
||||
"R"
|
||||
],
|
||||
"expected": {
|
||||
"tag": "Restart"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "ArrowUp-still-turns-up",
|
||||
"args": [
|
||||
"ArrowUp"
|
||||
],
|
||||
"expected": {
|
||||
"tag": "Turn",
|
||||
"dir": "Up"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "d-still-turns-right",
|
||||
"args": [
|
||||
"d"
|
||||
],
|
||||
"expected": {
|
||||
"tag": "Turn",
|
||||
"dir": "Right"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Enter-is-not-bound",
|
||||
"args": [
|
||||
"Enter"
|
||||
],
|
||||
"expected": null
|
||||
},
|
||||
{
|
||||
"name": "empty-string-is-not-bound",
|
||||
"args": [
|
||||
""
|
||||
],
|
||||
"expected": null
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user