tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

css_autocompletion_tests.json (2677B)


      1 {
      2  "description": [
      3    "Test states to be tested for css state machine in css-autocompleter.js file.",
      4    "Test cases are of the following format:",
      5    "[",
      6    "  [",
      7    "    line, # The line location of the cursor",
      8    "    ch    # The column location of the cursor",
      9    "  ],",
     10    "  suggestions # Array of expected results",
     11    "  pref-suggestions # Optional array of additional pref-enabled suggestions: [pref, suggestion]",
     12    "]"
     13  ],
     14  "tests": [
     15    [[0, 10], []],
     16    [
     17      [4, 7],
     18      [".devtools-menulist", ".devtools-toolbarbutton"]
     19    ],
     20    [
     21      [5, 8],
     22      [
     23        "-moz-animation",
     24        "-moz-animation-delay",
     25        "-moz-animation-direction",
     26        "-moz-animation-duration",
     27        "-moz-animation-fill-mode",
     28        "-moz-animation-iteration-count",
     29        "-moz-animation-name",
     30        "-moz-animation-play-state",
     31        "-moz-animation-timing-function",
     32        "-moz-appearance"
     33      ]
     34    ],
     35    [
     36      [12, 20],
     37      ["none", "number-input"]
     38    ],
     39    [[12, 22], ["none"]],
     40    [
     41      [17, 22],
     42      ["hsl", "hsla"]
     43    ],
     44    [
     45      [19, 10],
     46      [
     47        "background",
     48        "background-attachment",
     49        "background-blend-mode",
     50        "background-clip",
     51        "background-color",
     52        "background-image",
     53        "background-origin",
     54        "background-position",
     55        "background-position-x",
     56        "background-position-y",
     57        "background-repeat",
     58        "background-size"
     59      ]
     60    ],
     61    [
     62      [21, 9],
     63      ["auto", "inherit", "initial", "revert", "revert-layer", "unset"],
     64      [["layout.css.anchor-positioning.enabled", "anchor-size"]]
     65    ],
     66    [
     67      [25, 26],
     68      [
     69        ".devtools-toolbarbutton > hbox",
     70        ".devtools-toolbarbutton > tab",
     71        ".devtools-toolbarbutton > .toolbarbutton-menubutton-button"
     72      ]
     73    ],
     74    [
     75      [25, 31],
     76      [".devtools-toolbarbutton > hbox.toolbarbutton-menubutton-button"]
     77    ],
     78    [
     79      [29, 20],
     80      [".devtools-menulist:active", ".devtools-menulist:after"]
     81    ],
     82    [
     83      [30, 10],
     84      [
     85        "#devtools-anotherone",
     86        "#devtools-itjustgoeson",
     87        "#devtools-menu",
     88        "#devtools-okstopitnow",
     89        "#devtools-toolbarbutton",
     90        "#devtools-yetagain"
     91      ]
     92    ],
     93    [[39, 39], [".devtools-toolbarbutton:not([label]) > tab"]],
     94    [
     95      [43, 51],
     96      [
     97        ".devtools-toolbarbutton:not([checked=true]):hover:active",
     98        ".devtools-toolbarbutton:not([checked=true]):hover:after"
     99      ]
    100    ],
    101    [[58, 36], ["!important;"]],
    102    [
    103      [73, 42],
    104      [":lang(", ":last-child", ":last-of-type", ":link"]
    105    ],
    106    [[77, 25], [".visible"]]
    107  ]
    108 }