browser/devtools/sourceeditor/test/css_autocompletion_tests.json

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/sourceeditor/test/css_autocompletion_tests.json	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +// Test states to be tested for css state machine in css-autocompelter.js file.
     1.5 +// Test cases are of the following format:
     1.6 +// [
     1.7 +//   [
     1.8 +//     line, // The line location of the cursor
     1.9 +//     ch    // The column locaiton of the cursor
    1.10 +//   ],
    1.11 +//   suggestions // Array of expected results
    1.12 +// ]
    1.13 +[
    1.14 +  [[0, 10], []],
    1.15 +  [[4,  7], ['.devtools-menulist', '.devtools-toolbarbutton']],
    1.16 +  [[5,  8], ['-moz-animation', '-moz-animation-delay', '-moz-animation-direction',
    1.17 +             '-moz-animation-duration', '-moz-animation-fill-mode',
    1.18 +             '-moz-animation-iteration-count', '-moz-animation-name',
    1.19 +             '-moz-animation-play-state', '-moz-animation-timing-function',
    1.20 +             '-moz-appearance']],
    1.21 +  [[12, 20], ['none', 'number-input']],
    1.22 +  [[12, 22], ['none']],
    1.23 +  [[17, 22], ['hsl', 'hsla']],
    1.24 +  [[21,  9], ["-moz-calc", "auto", "calc", "inherit", "initial","unset"]],
    1.25 +  [[22,  5], ['color', 'color-interpolation', 'color-interpolation-filters']],
    1.26 +  [[25, 26], ['.devtools-toolbarbutton > tab',
    1.27 +              '.devtools-toolbarbutton > .toolbarbutton-menubutton-button',
    1.28 +              '.devtools-toolbarbutton > hbox']],
    1.29 +  [[25, 31], ['.devtools-toolbarbutton > hbox.toolbarbutton-menubutton-button']],
    1.30 +  [[29, 20], ['.devtools-menulist:after', '.devtools-menulist:active']],
    1.31 +  [[30, 10], ['#devtools-anotherone', '#devtools-itjustgoeson', '#devtools-menu',
    1.32 +              '#devtools-okstopitnow', '#devtools-toolbarbutton', '#devtools-yetagain']],
    1.33 +  [[39, 39], ['.devtools-toolbarbutton:not([label]) > tab']],
    1.34 +  [[43, 51], ['.devtools-toolbarbutton:not([checked=true]):hover:after',
    1.35 +              '.devtools-toolbarbutton:not([checked=true]):hover:active']],
    1.36 +  [[58, 36], ['!important;']],
    1.37 +  [[73, 42], [':last-child', ':lang(', ':last-of-type', ':link']],
    1.38 +  [[77, 25], ['.visible']],
    1.39 +]

mercurial