browser/devtools/sourceeditor/test/css_autocompletion_tests.json

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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