{
  "rule": "linkAmb",
  "timeLimit": 20,
  "acts": [
    {
      "type": "launch",
      "target": {
        "url": "file://validation/tests/targets/linkAmb/index.html",
        "what": "page with unambiguous and ambiguous links"
      }
    },
    {
      "type": "test",
      "launch": {},
      "which": "testaro",
      "withItems": true,
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.1",
          "=",
          0
        ],
        [
          "standardResult.totals.2",
          "=",
          1
        ],
        [
          "standardResult.instances.length",
          "=",
          1
        ],
        [
          "standardResult.instances.0.ruleID",
          "=",
          "linkAmb"
        ],
        [
          "standardResult.instances.0.what",
          "i",
          "Link has the same text"
        ],
        [
          "standardResult.instances.0.ordinalSeverity",
          "=",
          2
        ],
        [
          "standardResult.instances.0.tagName",
          "=",
          "A"
        ],
        [
          "standardResult.instances.0.id",
          "=",
          "basqueInfoICB"
        ],
        [
          "standardResult.instances.0.location.doc",
          "=",
          "dom"
        ],
        [
          "standardResult.instances.0.location.type",
          "=",
          "selector"
        ],
        [
          "standardResult.instances.0.location.spec",
          "=",
          "#basqueInfoICB"
        ],
        [
          "standardResult.instances.0.excerpt",
          "i",
          "Basque information"
        ]
      ],
      "rules": [
        "y",
        "linkAmb"
      ]
    },
    {
      "type": "test",
      "launch": {},
      "which": "testaro",
      "withItems": false,
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.1",
          "=",
          0
        ],
        [
          "standardResult.totals.2",
          "=",
          1
        ],
        [
          "standardResult.instances.length",
          "=",
          1
        ],
        [
          "standardResult.instances.0.ruleID",
          "=",
          "linkAmb"
        ],
        [
          "standardResult.instances.0.count",
          "=",
          1
        ],
        [
          "standardResult.instances.0.what",
          "i",
          "Links have the same texts"
        ]
      ],
      "rules": [
        "y",
        "linkAmb"
      ]
    }
  ]
}
