File: polyfill.html

package info (click to toggle)
node-cross-fetch 4.0.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 548 kB
  • sloc: javascript: 1,017; makefile: 122; sh: 50
file content (35 lines) | stat: -rw-r--r-- 902 bytes parent folder | download
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
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <link href="../../../node_modules/mocha/mocha.css" rel="stylesheet" />
</head>

<body>
  <div id="mocha"></div>

  <script src="../../../node_modules/chai/chai.js"></script>
  <script src="../../../node_modules/mocha/mocha.js"></script>

  <script src="../../setup/browser.env.js"></script>
  <script src="../../module-system/module.spec.js"></script>
  <script src="./polyfill.bundle.js"></script>

  <script>
  if (/globals=off/.test(location.search)) {
    describe('Browser:Polyfill:Import:Webpack', () => {
      addModuleSuite({ fetch, Request, Response, Headers })
      addPolyfillSuite({ fetch })
    })
  } else {
    describe('Browser:Native:Import:Webpack', () => {
      addModuleSuite({ fetch, Request, Response, Headers })
      addNativeSuite({ fetch })
    })
  }

  mocha.checkLeaks()
  mocha.run()
  </script>
</body>
</html>