css_autocompletion_tests.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Test states to be tested for css state machine in css-autocompelter.js file.
  2. // Test cases are of the following format:
  3. // [
  4. // [
  5. // line, // The line location of the cursor
  6. // ch // The column locaiton of the cursor
  7. // ],
  8. // suggestions // Array of expected results
  9. // ]
  10. [
  11. [[0, 10], []],
  12. [[4, 7], ['.devtools-menulist', '.devtools-toolbarbutton']],
  13. [[5, 8], ['-moz-animation', '-moz-animation-delay', '-moz-animation-direction',
  14. '-moz-animation-duration', '-moz-animation-fill-mode',
  15. '-moz-animation-iteration-count', '-moz-animation-name',
  16. '-moz-animation-play-state', '-moz-animation-timing-function',
  17. '-moz-appearance']],
  18. [[12, 20], ['none', 'number-input']],
  19. [[12, 22], ['none']],
  20. [[17, 22], ['hsl', 'hsla']],
  21. [[19, 10], ['background', 'background-attachment', 'background-blend-mode',
  22. 'background-clip', 'background-color', 'background-image',
  23. 'background-origin', 'background-position', 'background-position-x',
  24. 'background-position-y', 'background-repeat', 'background-size']],
  25. [[21, 9], ["-moz-calc", "auto", "calc", "inherit", "initial","unset"]],
  26. [[25, 26], ['.devtools-toolbarbutton > tab',
  27. '.devtools-toolbarbutton > hbox',
  28. '.devtools-toolbarbutton > .toolbarbutton-menubutton-button']],
  29. [[25, 31], ['.devtools-toolbarbutton > hbox.toolbarbutton-menubutton-button']],
  30. [[29, 20], ['.devtools-menulist:after', '.devtools-menulist:active']],
  31. [[30, 10], ['#devtools-anotherone', '#devtools-itjustgoeson', '#devtools-menu',
  32. '#devtools-okstopitnow', '#devtools-toolbarbutton', '#devtools-yetagain']],
  33. [[39, 39], ['.devtools-toolbarbutton:not([label]) > tab']],
  34. [[43, 51], ['.devtools-toolbarbutton:not([checked=true]):hover:after',
  35. '.devtools-toolbarbutton:not([checked=true]):hover:active']],
  36. [[58, 36], ['!important;']],
  37. [[73, 42], [':lang(', ':last-of-type', ':link', ':last-child']],
  38. [[77, 25], ['.visible']],
  39. ]