browser/devtools/sourceeditor/test/css_autocompletion_tests.json

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:2d7652ec09b8
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 [[21, 9], ["-moz-calc", "auto", "calc", "inherit", "initial","unset"]],
22 [[22, 5], ['color', 'color-interpolation', 'color-interpolation-filters']],
23 [[25, 26], ['.devtools-toolbarbutton > tab',
24 '.devtools-toolbarbutton > .toolbarbutton-menubutton-button',
25 '.devtools-toolbarbutton > hbox']],
26 [[25, 31], ['.devtools-toolbarbutton > hbox.toolbarbutton-menubutton-button']],
27 [[29, 20], ['.devtools-menulist:after', '.devtools-menulist:active']],
28 [[30, 10], ['#devtools-anotherone', '#devtools-itjustgoeson', '#devtools-menu',
29 '#devtools-okstopitnow', '#devtools-toolbarbutton', '#devtools-yetagain']],
30 [[39, 39], ['.devtools-toolbarbutton:not([label]) > tab']],
31 [[43, 51], ['.devtools-toolbarbutton:not([checked=true]):hover:after',
32 '.devtools-toolbarbutton:not([checked=true]):hover:active']],
33 [[58, 36], ['!important;']],
34 [[73, 42], [':last-child', ':lang(', ':last-of-type', ':link']],
35 [[77, 25], ['.visible']],
36 ]

mercurial