Skip to content

Commit 177c8f4

Browse files
committed
Updated index.html
1 parent 545afaa commit 177c8f4

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed

index.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
Hello World
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
<script src="./axe.js"></script>
8+
<script>
9+
document.addEventListener('DOMContentLoaded', () => {
10+
const iframe = document.querySelector('iframe');
11+
});
12+
</script>
13+
</head>
14+
<body>
15+
<iframe src="./test.html" frameborder="0" ></iframe>
16+
</body>
17+
</html>

test.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
<script>
8+
const VIEWPORT_ZOOM = { width: 640, height: 512 };
9+
window.onmessage = async (event) => {
10+
if (event.data === 'dummyMessage') {
11+
// document.querySelector('#test-ctn').textContent = 'Message received from parent window';
12+
13+
// for(let i=0;i<10;i++) {
14+
// await window._domForgeCDP({ method: 'tab', sleep: 200 });
15+
// }
16+
17+
//CDP Command
18+
// chrome.runtime --> sendMessage({ type: 'test-message', data: 'Hello from iframe' })
19+
20+
// let configuration = {
21+
// runOnly: {
22+
// type: 'rule',
23+
// values: ['test-rule'] // Run with 2.1 AA by default with best practices disabled
24+
// },
25+
// rules: {
26+
// 'audio-caption': { enabled: false },
27+
// 'frame-tested': { enabled: false },
28+
// 'color-contrast': { enabled: false },
29+
// },
30+
// resultTypes: ['violations', 'incomplete'],
31+
// iframes: true
32+
// }
33+
34+
35+
// axe.run(document, configuration).then(results => {
36+
// console.log("Results are ", results);
37+
// }).catch(err => console.log("Error is ", err));
38+
}
39+
};
40+
</script>
41+
</head>
42+
<body>
43+
<div id="test-ctn">Testing..</div>
44+
<button>Button 1</button>
45+
<button>Button 2</button>
46+
<button>Button 3</button>
47+
<button>Button 4</button>
48+
<button>Button 5</button>
49+
<button>Button 6</button>
50+
</body>
51+
</html>

0 commit comments

Comments
 (0)