{
  "rule": "embAc",
  "timeLimit": 20,
  "acts": [
    {
      "type": "launch",
      "target": {
        "url": "file://validation/tests/targets/embAc/good.html",
        "what": "page without embedding in links or buttons"
      }
    },
    {
      "type": "test",
      "which": "testaro",
      "withItems": true,
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.2",
          "=",
          0
        ],
        [
          "standardResult.instances.length",
          "=",
          0
        ]
      ],
      "rules": [
        "y",
        "embAc"
      ]
    },
    {
      "type": "url",
      "which": "file://validation/tests/targets/embAc/bad.html",
      "what": "page with embeddings in links and buttons"
    },
    {
      "type": "test",
      "which": "testaro",
      "withItems": true,
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.2",
          "=",
          8
        ],
        [
          "standardResult.instances.0.ruleID",
          "=",
          "embAc"
        ],
        [
          "standardResult.instances.0.what",
          "i",
          "is embedded in a link"
        ],
        [
          "standardResult.instances.0.tagName",
          "=",
          "BUTTON"
        ],
        [
          "standardResult.instances.0.id",
          "=",
          "buttonInLink"
        ],
        [
          "standardResult.instances.0.location.doc",
          "=",
          "dom"
        ],
        [
          "standardResult.instances.0.location.type",
          "=",
          "selector"
        ],
        [
          "standardResult.instances.0.location.spec",
          "=",
          "#buttonInLink"
        ],
        [
          "standardResult.instances.0.excerpt",
          "i",
          "buttons"
        ],
        [
          "standardResult.instances.1.excerpt",
          "i",
          "yes"
        ],
        [
          "standardResult.instances.6.ordinalSeverity",
          "=",
          2
        ]
      ],
      "rules": [
        "y",
        "embAc"
      ]
    },
    {
      "type": "test",
      "which": "testaro",
      "withItems": false,
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.2",
          "=",
          8
        ],
        [
          "standardResult.instances.0.ruleID",
          "=",
          "embAc"
        ],
        [
          "standardResult.instances.0.what",
          "i",
          "are contained"
        ],
        [
          "standardResult.instances.0.count",
          "=",
          8
        ],
        [
          "standardResult.instances.0.ordinalSeverity",
          "=",
          2
        ]
      ],
      "rules": [
        "y",
        "embAc"
      ]
    }
  ]
}
