summaryrefslogtreecommitdiffstats
path: root/browser/components/search/test/browser/slow_loading_page_with_ads_on_load_event.html
blob: 307b24d4fe809f5b56a185c402e110aae85e006a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
</head>
<body id='body'>
</body>
  <img src="https://example.org/browser/browser/components/search/test/browser/slow_loading_page_with_ads.sjs">
  <script>
    setTimeout(() => {
      let body = document.getElementById('body');
      let ad1 = document.createElement('a');
      ad1.setAttribute('id', 'ad1');
      ad1.setAttribute('href', 'https://example.com/ad');
      ad1.innerHTML = 'Ad link'

      let ad2 = document.createElement('a');
      ad2.setAttribute('id', 'ad2');
      ad2.setAttribute('href', 'https://example.com/ad2');
      ad2.innerHTML = 'Second Ad link'

      let frame = document.createElement('iframe');
      frame.setAttribute('src', 'searchTelemetry.html');

      body.appendChild(ad1);
      body.appendChild(ad2);
      body.appendChild(frame);
    }, 2000);
  </script>
</html>