diff --git a/doc/examples/mocha/test/test.html b/doc/examples/mocha/test/test.html
index 68d0521f9c..b45598d27c 100644
--- a/doc/examples/mocha/test/test.html
+++ b/doc/examples/mocha/test/test.html
@@ -1,33 +1,50 @@
-
-
- Example Mocha Test
-
-
-
-
-
+
+
+ Example Mocha Test
+
+
+
+
+
-
-
-
-
+
+
+
+
-
+
-
-
-
-
-
-
-
-
Label for this text field.
-
-
-
+
+
+
+
+
+
+
+
Label for this text field.
+
+
+
diff --git a/doc/examples/qunit/test/test.html b/doc/examples/qunit/test/test.html
index e3820e1976..697d0619e8 100644
--- a/doc/examples/qunit/test/test.html
+++ b/doc/examples/qunit/test/test.html
@@ -1,27 +1,29 @@
-
-
- Basic Test Suite
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Label for this text field.
-
-
-
-
+
+
+ Basic Test Suite
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Label for this text field.
+
+
+
diff --git a/package.json b/package.json
index c29bd6342c..6ab58a09e5 100644
--- a/package.json
+++ b/package.json
@@ -70,7 +70,7 @@
"rule-gen": "node build/rule-generator",
"next-release": "standard-version --scripts.prebump=./build/next-version.js --skip.commit=true --skip.tag=true",
"sri-update": "grunt build && node build/sri-update && git add sri-history.json",
- "fmt": "prettier --write *.{json,md,js} **/*.ts './{build,doc,lib,test}/**/*.{json,md,js,ts}'"
+ "fmt": "prettier --write *.{json,md,js} **/*.ts './{build,doc,lib,test}/**/*.{json,md,js,ts,html}'"
},
"devDependencies": {
"@babel/core": "^7.3.4",
@@ -115,7 +115,7 @@
"minami": "^1.2.3",
"mkdirp": "^0.5.1",
"mocha": "^6.1.2",
- "prettier": "^1.14.0",
+ "prettier": "^1.17.0",
"retire": "^2.0.1",
"revalidator": "~0.3.1",
"selenium-webdriver": "~3.6.0",
@@ -126,7 +126,7 @@
},
"dependencies": {},
"lint-staged": {
- "*.{md,json,ts}": [
+ "*.{md,json,ts,html}": [
"prettier --write",
"git add"
],
diff --git a/test/core/public/run-rules.js b/test/core/public/run-rules.js
index 29fb5cb2bd..9c2815a119 100644
--- a/test/core/public/run-rules.js
+++ b/test/core/public/run-rules.js
@@ -149,6 +149,7 @@ describe('runRules', function() {
fixture.appendChild(frame);
});
+ // NOTE: this test depends on the whitespace in /test/mock/frames/context.html. If the whitespace changes in that file, this test needs to be updated to reflect that change.
it('should properly calculate context and return results from matching frames', function(done) {
axe._load({
rules: [
@@ -251,7 +252,8 @@ describe('runRules', function() {
node: {
selector: ['#context-test', '#foo'],
xpath: ["/iframe[@id='context-test']", "/div[@id='foo']"],
- source: ''
+ source:
+ ''
},
any: [
{
@@ -265,7 +267,7 @@ describe('runRules', function() {
"/div[@id='foo']"
],
source:
- ''
+ ''
}
]
}
diff --git a/test/integration/full/aria-hidden-body/fail.html b/test/integration/full/aria-hidden-body/fail.html
index 63228c8811..0f5ac82b8b 100644
--- a/test/integration/full/aria-hidden-body/fail.html
+++ b/test/integration/full/aria-hidden-body/fail.html
@@ -1,26 +1,30 @@
-
+
-
-aria-hidden on body Test
+
+ aria-hidden on body Test
-
-
-
-
-
-
-
-
- Some title.
- Deque
-
-
-
-
+
+
+
+
+
+
+
+
+ Some title.
+ Deque
+
+
+
+
diff --git a/test/integration/full/aria-hidden-body/pass.html b/test/integration/full/aria-hidden-body/pass.html
index f912c95584..fca79d678a 100644
--- a/test/integration/full/aria-hidden-body/pass.html
+++ b/test/integration/full/aria-hidden-body/pass.html
@@ -1,26 +1,30 @@
-
+
-
-aria-hidden on body Test
+
+ aria-hidden on body Test
-
-
-
-
-
-
-
-
- Some title.
- Deque
-
-
-
-
+
+
+
+
+
+
+
+
+ Some title.
+ Deque
+
+
+
+
diff --git a/test/integration/full/async/async.html b/test/integration/full/async/async.html
index b2aa70d45a..d6cf334726 100644
--- a/test/integration/full/async/async.html
+++ b/test/integration/full/async/async.html
@@ -1,29 +1,32 @@
-
+
-
-Async Test
+
+ Async Test
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
diff --git a/test/integration/full/bypass/aria-header.html b/test/integration/full/bypass/aria-header.html
index 6fedc24bcf..077556f9aa 100644
--- a/test/integration/full/bypass/aria-header.html
+++ b/test/integration/full/bypass/aria-header.html
@@ -1,25 +1,29 @@
-
+
-
-Bypass Test
+
+ Bypass Test
-
-
-
-
-
-
-
- This header will make the test pass.
- stuff
-
-
-
-
+
+
+
+
+
+
+
+ This header will make the test pass.
+ stuff
+
+
+
+
diff --git a/test/integration/full/bypass/fail.html b/test/integration/full/bypass/fail.html
index 0911d45362..3b1e6ec912 100644
--- a/test/integration/full/bypass/fail.html
+++ b/test/integration/full/bypass/fail.html
@@ -1,25 +1,29 @@
-
+
-
-Bypass Test
+
+ Bypass Test
-
-
-
-
-
-
-
-
- stuff
-
-
-
-
+
+
+
+
+
+
+
+
+ stuff
+
+
+
+
diff --git a/test/integration/full/bypass/header1.html b/test/integration/full/bypass/header1.html
index d4db2f5bae..9721ccb0a6 100644
--- a/test/integration/full/bypass/header1.html
+++ b/test/integration/full/bypass/header1.html
@@ -1,26 +1,30 @@
-
+
-
-Bypass Test
+
+ Bypass Test
-
-
-
-
-
-
-
-
- This header will make the test pass.
- stuff
-
-
-
-
+
+
+
+
+
+
+
+
+ This header will make the test pass.
+ stuff
+
+
+
+
diff --git a/test/integration/full/bypass/header2.html b/test/integration/full/bypass/header2.html
index 3d6fbcaa22..453d4f8451 100644
--- a/test/integration/full/bypass/header2.html
+++ b/test/integration/full/bypass/header2.html
@@ -1,26 +1,30 @@
-
+
-
-Bypass Test
+
+ Bypass Test
-
-
-
-
-
-
-
-
- This header will make the test pass.
- stuff
-
-
-
-
+
+
+
+
+
+
+
+
+ This header will make the test pass.
+ stuff
+
+
+
+
diff --git a/test/integration/full/bypass/region.html b/test/integration/full/bypass/region.html
index 25d0c53af0..c027afc4c7 100644
--- a/test/integration/full/bypass/region.html
+++ b/test/integration/full/bypass/region.html
@@ -1,26 +1,30 @@
-
+
-
-Bypass Test
+
+ Bypass Test
-
-
-
-
-
-
-
-
- This header will make the test pass.
- stuff
-
-
-
-
+
+
+
+
+
+
+
+
+ This header will make the test pass.
+ stuff
+
+
+
+
diff --git a/test/integration/full/bypass/skip-link.html b/test/integration/full/bypass/skip-link.html
index 1f1ad24332..1adf0803d8 100644
--- a/test/integration/full/bypass/skip-link.html
+++ b/test/integration/full/bypass/skip-link.html
@@ -1,27 +1,31 @@
-
+
-
-Bypass Test
+
+ Bypass Test
-
-
-
-
-
-
-
-
- Skip
- Test.
- stuff
-
-
-
-
+
+
+
+
+
+
+
+
+ Skip
+ Test.
+ stuff
+
+
+
+
diff --git a/test/integration/full/configure-options/configure-options.html b/test/integration/full/configure-options/configure-options.html
index c6564d1201..9368b8a64d 100644
--- a/test/integration/full/configure-options/configure-options.html
+++ b/test/integration/full/configure-options/configure-options.html
@@ -1,25 +1,29 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
diff --git a/test/integration/full/context/context.html b/test/integration/full/context/context.html
index f9c9cb3df7..629d3d091b 100644
--- a/test/integration/full/context/context.html
+++ b/test/integration/full/context/context.html
@@ -1,51 +1,55 @@
-
+
-
- frame exclude test
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ frame exclude test
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/integration/full/context/frames/level1.html b/test/integration/full/context/frames/level1.html
index fe48132563..f275354f2d 100644
--- a/test/integration/full/context/frames/level1.html
+++ b/test/integration/full/context/frames/level1.html
@@ -1,11 +1,11 @@
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/test/integration/full/context/frames/level2-a.html b/test/integration/full/context/frames/level2-a.html
index 9a051ee942..7179a8ee60 100644
--- a/test/integration/full/context/frames/level2-a.html
+++ b/test/integration/full/context/frames/level2-a.html
@@ -1,10 +1,10 @@
-
+
-
-
-
-
-
- Hi
-
+
+
+
+
+
+ Hi
+
diff --git a/test/integration/full/context/frames/level2-b.html b/test/integration/full/context/frames/level2-b.html
index a31c8a6da0..41548172e0 100644
--- a/test/integration/full/context/frames/level2-b.html
+++ b/test/integration/full/context/frames/level2-b.html
@@ -1,9 +1,8 @@
-
+
-
-
-
-
-
-
+
+
+
+
+
diff --git a/test/integration/full/contrast/shadow-dom.html b/test/integration/full/contrast/shadow-dom.html
index 3d8fd11c8f..b43570ae6e 100644
--- a/test/integration/full/contrast/shadow-dom.html
+++ b/test/integration/full/contrast/shadow-dom.html
@@ -1,28 +1,30 @@
-
+
-
- Test Page
-
-
-
-
-
-
-
-
-
- Text
-
-
-
-
-
+
+ Test Page
+
+
+
+
+
+
+
+
+
+ Text
+
+
+
+
+
diff --git a/test/integration/full/contrast/sticky-header.html b/test/integration/full/contrast/sticky-header.html
index edcccf1bcf..3dac149d6b 100644
--- a/test/integration/full/contrast/sticky-header.html
+++ b/test/integration/full/contrast/sticky-header.html
@@ -1,73 +1,108 @@
-
+
-
- Test Page
-
-
-
-
-
-
-
-
-
-
-
-
- Some content
Some content
Some content
Some content
Some content
Some content
Some content
Some content
- Some content
Some content
Some content
Some content
Some content
Some content
Some content
Some content
- Some content
Some content
Some content
Some content
Some content
Some content
Some content
Some content
- Some content
Some content
Some content
Some content
Some content
Some content
Some content
Some content
-
-
-
-
-
-
-
+ main {
+ position: relative;
+ z-index: 1;
+ left: 1px;
+ padding: 80px 20px;
+ }
+
+
+
+
+
+
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+ Some content
+
+
+
+
+
+