{
  "rule": "allHidden",
  "timeLimit": 20,
  "acts": [
    {
      "type": "launch",
      "target": {
        "url": "file://validation/tests/targets/allHidden/good.html",
        "what": "page with nothing hidden"
      }
    },
    {
      "type": "test",
      "which": "testaro",
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.0",
          "=",
          0
        ],
        [
          "standardResult.totals.1",
          "=",
          0
        ],
        [
          "standardResult.totals.2",
          "=",
          0
        ],
        [
          "standardResult.totals.3",
          "=",
          0
        ],
        [
          "standardResult.instances.length",
          "=",
          0
        ]
      ],
      "withItems": true,
      "rules": [
        "y",
        "allHidden"
      ]
    },
    {
      "type": "url",
      "which": "file://validation/tests/targets/allHidden/noBody.html",
      "what": "page with no body"
    },
    {
      "type": "test",
      "which": "testaro",
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.1",
          "=",
          0
        ],
        [
          "standardResult.totals.2",
          "=",
          0
        ],
        [
          "standardResult.totals.3",
          "=",
          0
        ],
        [
          "standardResult.instances.length",
          "=",
          0
        ]
      ],
      "withItems": true,
      "rules": [
        "y",
        "allHidden"
      ]
    },
    {
      "type": "url",
      "which": "file://validation/tests/targets/allHidden/noMain.html",
      "what": "page with no main landmark"
    },
    {
      "type": "test",
      "which": "testaro",
      "what": "entirely or mainly hidden page",
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.0",
          "=",
          0
        ],
        [
          "standardResult.totals.1",
          "=",
          0
        ],
        [
          "standardResult.totals.2",
          "=",
          0
        ],
        [
          "standardResult.instances.length",
          "=",
          0
        ]
      ],
      "withItems": true,
      "rules": [
        "y",
        "allHidden"
      ]
    },
    {
      "type": "url",
      "which": "file://validation/tests/targets/allHidden/hiddenMain.html",
      "what": "page with a hidden main landmark"
    },
    {
      "type": "test",
      "which": "testaro",
      "what": "entirely or mainly hidden page",
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.0",
          "=",
          0
        ],
        [
          "standardResult.totals.1",
          "=",
          1
        ],
        [
          "standardResult.totals.2",
          "=",
          0
        ],
        [
          "standardResult.instances.length",
          "=",
          1
        ],
        [
          "standardResult.instances.0.what",
          "=",
          "Main region is hidden"
        ]
      ],
      "withItems": true,
      "rules": [
        "y",
        "allHidden"
      ]
    },
    {
      "type": "url",
      "which": "file://validation/tests/targets/allHidden/visHiddenMain.html",
      "what": "page with a visually hidden main landmark"
    },
    {
      "type": "test",
      "which": "testaro",
      "what": "entirely or mainly hidden page",
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.1",
          "=",
          1
        ],
        [
          "standardResult.totals.2",
          "=",
          0
        ],
        [
          "standardResult.instances.length",
          "=",
          1
        ],
        [
          "standardResult.instances.0.what",
          "=",
          "Main region is hidden"
        ]
      ],
      "withItems": true,
      "rules": [
        "y",
        "allHidden"
      ]
    },
    {
      "type": "url",
      "which": "file://validation/tests/targets/allHidden/ariaHiddenBody.html",
      "what": "page with an ARIA-hidden body"
    },
    {
      "type": "test",
      "which": "testaro",
      "what": "entirely or mainly hidden page",
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.2",
          "=",
          1
        ],
        [
          "standardResult.instances.length",
          "=",
          1
        ],
        [
          "standardResult.instances.0.what",
          "=",
          "Body is hidden"
        ]
      ],
      "withItems": true,
      "rules": [
        "y",
        "allHidden"
      ]
    },
    {
      "type": "url",
      "which": "file://validation/tests/targets/allHidden/mixedHidden.html",
      "what": "page with mixed hidden states"
    },
    {
      "type": "test",
      "which": "testaro",
      "what": "entirely or mainly hidden page",
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.3",
          "=",
          1
        ],
        [
          "standardResult.instances.length",
          "=",
          3
        ],
        [
          "standardResult.instances.0.what",
          "=",
          "Document is hidden"
        ]
      ],
      "withItems": true,
      "rules": [
        "y",
        "allHidden"
      ]
    },
    {
      "type": "url",
      "which": "file://validation/tests/targets/allHidden/noneDoc.html",
      "what": "page with none as its display property"
    },
    {
      "type": "test",
      "which": "testaro",
      "what": "entirely or mainly hidden page",
      "stopOnFail": true,
      "expect": [
        [
          "standardResult.totals.2",
          "=",
          0
        ],
        [
          "standardResult.totals.3",
          "=",
          1
        ],
        [
          "standardResult.instances.length",
          "=",
          1
        ],
        [
          "standardResult.instances.0.what",
          "=",
          "Document is hidden"
        ]
      ],
      "withItems": true,
      "rules": [
        "y",
        "allHidden"
      ]
    }
  ]
}
