|
265 | 265 | "tc059b730": { |
266 | 266 | "script": [ |
267 | 267 | { |
| 268 | + "label": "Open the Help menu", |
268 | 269 | "do": "click", |
269 | 270 | "name": "Help", |
270 | | - "role": "menu item", |
271 | | - "label": "Open the Help menu" |
| 271 | + "role": "menu item" |
272 | 272 | }, |
273 | 273 | { |
| 274 | + "label": "Open the License entry of the Help menu", |
274 | 275 | "do": "click", |
275 | 276 | "name": "License...", |
276 | | - "role": "menu item", |
277 | | - "label": "Open License" |
| 277 | + "role": "menu item" |
278 | 278 | }, |
279 | 279 | { |
| 280 | + "label": "The License entry opens a dialog", |
280 | 281 | "expect": "visible", |
281 | 282 | "name": "License", |
282 | 283 | "role": "dialog", |
283 | | - "label": "License dialog opens" |
| 284 | + "timeout": 5 |
284 | 285 | }, |
285 | 286 | { |
| 287 | + "label": "The License dialog has text in it (not empty)", |
286 | 288 | "expect": "text", |
287 | | - "contains": "GNU GENERAL PUBLIC LICENSE", |
288 | | - "label": "License dialog has text" |
| 289 | + "contains": "Copyright" |
289 | 290 | }, |
290 | 291 | { |
| 292 | + "label": "Close the License dialog with Escape", |
291 | 293 | "do": "key", |
292 | 294 | "keys": [ |
293 | 295 | "Escape" |
294 | | - ], |
295 | | - "label": "Close License with Escape" |
| 296 | + ] |
296 | 297 | }, |
297 | 298 | { |
| 299 | + "label": "The License dialog is closed", |
298 | 300 | "expect": "gone", |
299 | 301 | "name": "License", |
300 | | - "label": "License dialog is closed" |
| 302 | + "role": "dialog" |
301 | 303 | }, |
302 | 304 | { |
| 305 | + "label": "Open the Help menu again", |
303 | 306 | "do": "click", |
304 | 307 | "name": "Help", |
305 | | - "role": "menu item", |
306 | | - "label": "Open the Help menu" |
| 308 | + "role": "menu item" |
307 | 309 | }, |
308 | 310 | { |
| 311 | + "label": "Open the Authors entry of the Help menu", |
309 | 312 | "do": "click", |
310 | 313 | "name": "Authors...", |
311 | | - "role": "menu item", |
312 | | - "label": "Open Authors" |
| 314 | + "role": "menu item" |
313 | 315 | }, |
314 | 316 | { |
| 317 | + "label": "The Authors entry opens a dialog", |
315 | 318 | "expect": "visible", |
316 | 319 | "name": "Authors", |
317 | 320 | "role": "dialog", |
318 | | - "label": "Authors dialog opens" |
| 321 | + "timeout": 5 |
319 | 322 | }, |
320 | 323 | { |
| 324 | + "label": "The Authors dialog has text in it (not empty)", |
321 | 325 | "expect": "text", |
322 | | - "contains": "The cppcheck team", |
323 | | - "label": "Authors dialog has text" |
| 326 | + "contains": "The cppcheck team" |
324 | 327 | }, |
325 | 328 | { |
| 329 | + "label": "Close the Authors dialog with its Close button", |
326 | 330 | "do": "click", |
327 | 331 | "name": "Close", |
328 | | - "role": "button", |
329 | | - "label": "Close Authors with its Close button" |
| 332 | + "role": "button" |
330 | 333 | }, |
331 | 334 | { |
| 335 | + "label": "The Authors dialog is closed", |
332 | 336 | "expect": "gone", |
333 | 337 | "name": "Authors", |
334 | | - "role": "dialog", |
335 | | - "label": "Authors dialog is closed" |
| 338 | + "role": "dialog" |
336 | 339 | }, |
337 | 340 | { |
| 341 | + "label": "Open the Help menu again", |
338 | 342 | "do": "click", |
339 | 343 | "name": "Help", |
340 | | - "role": "menu item", |
341 | | - "label": "Open the Help menu" |
| 344 | + "role": "menu item" |
342 | 345 | }, |
343 | 346 | { |
| 347 | + "label": "Open the About entry of the Help menu", |
344 | 348 | "do": "click", |
345 | 349 | "name": "About...", |
346 | | - "role": "menu item", |
347 | | - "label": "Open About" |
| 350 | + "role": "menu item" |
348 | 351 | }, |
349 | 352 | { |
| 353 | + "label": "The About entry opens a dialog", |
350 | 354 | "expect": "visible", |
351 | | - "name": "About Cppcheck", |
| 355 | + "name": "About", |
352 | 356 | "role": "dialog", |
353 | | - "label": "About dialog opens" |
354 | | - }, |
355 | | - { |
356 | | - "expect": "text", |
357 | | - "contains": "Cppcheck - A tool for static C/C++ code analysis.", |
358 | | - "label": "About dialog has text" |
359 | | - }, |
360 | | - { |
361 | | - "do": "key", |
362 | | - "keys": [ |
363 | | - "Escape" |
364 | | - ], |
365 | | - "label": "Close About with Escape" |
366 | | - }, |
367 | | - { |
368 | | - "expect": "gone", |
369 | | - "name": "About Cppcheck", |
370 | | - "role": "dialog", |
371 | | - "label": "About dialog is closed" |
372 | | - }, |
373 | | - { |
374 | | - "do": "click", |
375 | | - "name": "Help", |
376 | | - "role": "menu item", |
377 | | - "label": "Open the Help menu" |
378 | | - }, |
379 | | - { |
380 | | - "do": "click", |
381 | | - "name": "Contents", |
382 | | - "role": "menu item", |
383 | | - "label": "Open Contents" |
| 357 | + "timeout": 5 |
384 | 358 | }, |
385 | 359 | { |
| 360 | + "label": "The About dialog has text in it: the version", |
386 | 361 | "expect": "visible", |
387 | | - "name": "Cppcheck", |
388 | | - "role": "alert", |
389 | | - "label": "Contents shows a message" |
| 362 | + "name": "Version", |
| 363 | + "role": "label" |
390 | 364 | }, |
391 | 365 | { |
| 366 | + "label": "The About dialog is not empty: copyright text", |
392 | 367 | "expect": "text", |
393 | | - "contains": "Helpfile", |
394 | | - "label": "Message has text" |
| 368 | + "contains": "Copyright" |
395 | 369 | }, |
396 | 370 | { |
| 371 | + "label": "Close the About dialog with Escape", |
397 | 372 | "do": "key", |
398 | 373 | "keys": [ |
399 | 374 | "Escape" |
400 | | - ], |
401 | | - "label": "Close the message with Escape" |
402 | | - }, |
403 | | - { |
404 | | - "expect": "visible", |
405 | | - "name": "Cppcheck GUI help", |
406 | | - "role": "dialog", |
407 | | - "label": "Help window opens" |
| 375 | + ] |
408 | 376 | }, |
409 | 377 | { |
410 | | - "expect": "text", |
411 | | - "contains": "Introduction", |
412 | | - "observed_fail": true, |
413 | | - "label": "Help window has text in it, not empty" |
| 378 | + "label": "The About dialog is closed", |
| 379 | + "expect": "gone", |
| 380 | + "name": "About", |
| 381 | + "role": "dialog" |
414 | 382 | }, |
415 | 383 | { |
416 | | - "do": "key", |
417 | | - "keys": [ |
418 | | - "Escape" |
419 | | - ], |
420 | | - "label": "Close the help window with Escape" |
| 384 | + "label": "The application is still running after closing every window", |
| 385 | + "expect": "alive" |
421 | 386 | } |
422 | 387 | ], |
423 | 388 | "script_for": "97511d2313db" |
|
0 commit comments