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