chromium/third_party/blink/web_tests/http/tests/devtools/elements/elements-js-path-expected.txt

Tests DOMNode.jsPath()

  document.querySelector("html")
    document.querySelector("head")
      document.querySelector("head > base")
    document.querySelector("body")
      document.querySelector("body > article:nth-child(1)")
      document.querySelector("body > article:nth-child(2)")
      document.querySelector("body > input[type=number]")
      document.querySelector("#ids")
        document.querySelector("#ids > div:nth-child(1)")
        document.querySelector("#inner-id")
        document.querySelector("#__proto__")
        document.querySelector("#\\#\\\"ridiculous\\\"\\.id")
        document.querySelector("#\\'quoted\\.value\\'")
        document.querySelector("#\\.foo\\.bar")
        document.querySelector("#\\-")
        document.querySelector("#-a")
        document.querySelector("#-\\30 ")
        document.querySelector("#\\37 ")
        document.querySelector("#ид")
        document.querySelector("#\\#")
        document.querySelector("#\\#foo")
        document.querySelector("#\\#\\#")
        document.querySelector("#\\#\\.\\#\\.\\#")
        document.querySelector("#_")
        document.querySelector("#\\{\\}")
        document.querySelector("#\\.fake-class")
        document.querySelector("#foo\\.bar")
        document.querySelector("#\\:hover")
        document.querySelector("#\\:hover\\:focus\\:active")
        document.querySelector("#\\[attr\\=value\\]")
        document.querySelector("#f\\/o\\/o")
        document.querySelector("#foo")
        document.querySelector("#f\\*o\\*o")
        document.querySelector("#f\\!o\\!o")
        document.querySelector("#f\\'o\\'o")
        document.querySelector("#f\\~o\\~o")
        document.querySelector("#f\\+o\\+o")
        document.querySelector("#input-id")
        document.querySelector("#ids > input[type=text]:nth-child(31)")
        document.querySelector("#ids > input[type=something-invalid-\\'-\\\"-and-weird]:nth-child(32)")
        document.querySelector("#ids > p")
      document.querySelector("#classes")
        document.querySelector("#classes > div.foo.bar")
        document.querySelector("#classes > div:nth-child(2)")
        document.querySelector("#classes > div.\\.foo")
        document.querySelector("#classes > div.\\.foo\\.bar")
        document.querySelector("#classes > div.\\-")
        document.querySelector("#classes > div.-a")
        document.querySelector("#classes > div.-\\30 ")
        document.querySelector("#classes > div.--a")
        document.querySelector("#classes > div.---a")
        document.querySelector("#classes > div.\\37 ")
        document.querySelector("#classes > div.класс")
        document.querySelector("#classes > div:nth-child(12)")
        document.querySelector("#classes > div.__proto__.foo")
        document.querySelector("#classes > div.\\#")
        document.querySelector("#classes > div.\\#foo")
        document.querySelector("#classes > div.\\#\\#")
        document.querySelector("#classes > div.\\#\\.\\#\\.\\#")
        document.querySelector("#classes > div._")
        document.querySelector("#classes > div.\\{\\}")
        document.querySelector("#classes > div.\\:hover")
        document.querySelector("#classes > div.\\:hover\\:focus\\:active")
        document.querySelector("#classes > div.\\[attr\\=value\\]")
        document.querySelector("#classes > div.f\\/o\\/o")
        document.querySelector("#classes > div:nth-child(24)")
        document.querySelector("#classes > div.f\\*o\\*o")
        document.querySelector("#classes > div.f\\!o\\!o")
        document.querySelector("#classes > div.f\\'o\\'o")
        document.querySelector("#classes > div.f\\~o\\~o")
        document.querySelector("#classes > div.f\\+o\\+o")
        document.querySelector("#classes > span")
        document.querySelector("#id-with-class")
        document.querySelector("#classes > input.input-class-one")
        document.querySelector("#classes > input.input-class-two")
      document.querySelector("#non-unique-classes")
        document.querySelector("#non-unique-classes > span:nth-child(1)")
        document.querySelector("#non-unique-classes > span:nth-child(2)")
        document.querySelector("#non-unique-classes > span:nth-child(3)")
        document.querySelector("#non-unique-classes > span.c1.c2.c3")
        document.querySelector("#non-unique-classes > span:nth-child(5)")
        document.querySelector("#non-unique-classes > div:nth-child(6)")
        document.querySelector("#non-unique-classes > div.c1.c2")
        document.querySelector("#non-unique-classes > div.c3.c2")
        document.querySelector("#non-unique-classes > div.c3.c4")
        document.querySelector("#non-unique-classes > div.c1.c4")
        document.querySelector("#non-unique-classes > input:nth-child(11)")
        document.querySelector("#non-unique-classes > input:nth-child(12)")
        document.querySelector("#non-unique-classes > div:nth-child(13)")