|
124 | 124 | },
|
125 | 125 | {
|
126 | 126 | "uuid": "491487b1-593d-423e-a075-aa78d449ff1f",
|
127 |
| - "description": "starts time tracking in current lap", |
| 127 | + "description": "starts time tracking for current lap", |
128 | 128 | "property": "time",
|
129 | 129 | "input": {
|
130 | 130 | "commands": [
|
|
148 | 148 | },
|
149 | 149 | {
|
150 | 150 | "uuid": "a0a7ba2c-8db6-412c-b1b6-cb890e9b72ed",
|
151 |
| - "description": "starts time tracking in total", |
| 151 | + "description": "starts time tracking for total", |
152 | 152 | "property": "time",
|
153 | 153 | "input": {
|
154 | 154 | "commands": [
|
|
194 | 194 | }
|
195 | 195 | ]
|
196 | 196 | },
|
197 |
| - |
198 | 197 | {
|
199 | 198 | "description": "stop",
|
200 | 199 | "cases": [
|
|
246 | 245 | },
|
247 | 246 | {
|
248 | 247 | "uuid": "621eac4c-8f43-4d99-919c-4cad776d93df",
|
249 |
| - "description": "stops time tracking in current lap", |
| 248 | + "description": "stops time tracking for current lap", |
250 | 249 | "property": "time",
|
251 | 250 | "input": {
|
252 | 251 | "commands": [
|
|
277 | 276 | },
|
278 | 277 | {
|
279 | 278 | "uuid": "465bcc82-7643-41f2-97ff-5e817cef8db4",
|
280 |
| - "description": "starts time tracking in total", |
| 279 | + "description": "starts time tracking for total", |
281 | 280 | "property": "time",
|
282 | 281 | "input": {
|
283 | 282 | "commands": [
|
|
326 | 325 | "expected": {}
|
327 | 326 | }
|
328 | 327 | ]
|
| 328 | + }, |
| 329 | + { |
| 330 | + "description": "lap", |
| 331 | + "cases": [ |
| 332 | + { |
| 333 | + "uuid": "091966e3-ed25-4397-908b-8bb0330118f8", |
| 334 | + "description": "adds current lap to previous laps", |
| 335 | + "property": "time", |
| 336 | + "input": { |
| 337 | + "commands": [ |
| 338 | + { |
| 339 | + "command": "new" |
| 340 | + }, |
| 341 | + { |
| 342 | + "command": "start" |
| 343 | + }, |
| 344 | + { |
| 345 | + "command": "advanceTime", |
| 346 | + "seconds": 98 |
| 347 | + }, |
| 348 | + { |
| 349 | + "command": "stop" |
| 350 | + }, |
| 351 | + { |
| 352 | + "command": "lap" |
| 353 | + }, |
| 354 | + { |
| 355 | + "command": "previousLaps", |
| 356 | + "expected": ["00:01:38"] |
| 357 | + } |
| 358 | + ] |
| 359 | + }, |
| 360 | + "expected": {} |
| 361 | + }, |
| 362 | + { |
| 363 | + "uuid": "091966e3-ed25-4397-908b-8bb0330118f8", |
| 364 | + "description": "resets current lap and resumes time tracking", |
| 365 | + "property": "time", |
| 366 | + "input": { |
| 367 | + "commands": [ |
| 368 | + { |
| 369 | + "command": "new" |
| 370 | + }, |
| 371 | + { |
| 372 | + "command": "start" |
| 373 | + }, |
| 374 | + { |
| 375 | + "command": "advanceTime", |
| 376 | + "seconds": 98 |
| 377 | + }, |
| 378 | + { |
| 379 | + "command": "stop" |
| 380 | + }, |
| 381 | + { |
| 382 | + "command": "lap" |
| 383 | + }, |
| 384 | + { |
| 385 | + "command": "currentLap", |
| 386 | + "expected": ["00:00:00"] |
| 387 | + }, |
| 388 | + { |
| 389 | + "command": "advanceTime", |
| 390 | + "seconds": 15 |
| 391 | + }, |
| 392 | + { |
| 393 | + "command": "currentLap", |
| 394 | + "expected": ["00:00:15"] |
| 395 | + } |
| 396 | + ] |
| 397 | + }, |
| 398 | + "expected": {} |
| 399 | + }, |
| 400 | + { |
| 401 | + "uuid": "091966e3-ed25-4397-908b-8bb0330118f8", |
| 402 | + "description": "continues time tracking for total", |
| 403 | + "property": "time", |
| 404 | + "input": { |
| 405 | + "commands": [ |
| 406 | + { |
| 407 | + "command": "new" |
| 408 | + }, |
| 409 | + { |
| 410 | + "command": "start" |
| 411 | + }, |
| 412 | + { |
| 413 | + "command": "advanceTime", |
| 414 | + "seconds": 22 |
| 415 | + }, |
| 416 | + { |
| 417 | + "command": "stop" |
| 418 | + }, |
| 419 | + { |
| 420 | + "command": "lap" |
| 421 | + }, |
| 422 | + , |
| 423 | + { |
| 424 | + "command": "advanceTime", |
| 425 | + "seconds": 33 |
| 426 | + }, |
| 427 | + { |
| 428 | + "command": "total", |
| 429 | + "expected": ["00:00:55"] |
| 430 | + } |
| 431 | + ] |
| 432 | + }, |
| 433 | + "expected": {} |
| 434 | + }, |
| 435 | + { |
| 436 | + "uuid": "ea75d36e-63eb-4f34-97ce-8c70e620bdba", |
| 437 | + "description": "cannot be called from ready state", |
| 438 | + "property": "time", |
| 439 | + "input": { |
| 440 | + "commands": [ |
| 441 | + { |
| 442 | + "command": "new" |
| 443 | + }, |
| 444 | + { |
| 445 | + "command": "start", |
| 446 | + "expected": { |
| 447 | + "error": "cannot lap a stopwatch that is not running" |
| 448 | + } |
| 449 | + } |
| 450 | + ] |
| 451 | + }, |
| 452 | + "expected": {} |
| 453 | + } |
| 454 | + ] |
329 | 455 | }
|
330 | 456 | ]
|
331 | 457 | }
|
0 commit comments