<!DOCTYPE html>
<html>
  <head>
    <title>Browser test suite</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="node_modules/mocha/mocha.css" />
  </head>
  <body>
    <div id="mocha"></div>
    <script src="node_modules/mocha/mocha.js"></script>
    <script src="node_modules/should/should.js"></script>
    <script>mocha.setup('bdd')</script>

    <script src="node_modules/bytebuffer/dist/bytebuffer.js"></script>
    <script src="node_modules/zlibjs/bin/zlib.min.js"></script>

    <script src="osm-read-pbf.js" crossorigin="anonymous"></script>
    <script>
        function require(module) {
            var fakeModules = {
                "should": window.Should,
                "../lib/main": {
                    "createPbfParser": pbfParser.createParser,
                    "parse": pbfParser.parse
                }
            }
            return fakeModules[module];
        }
    </script>

    <script src="test/zlibBrowserTest.js"></script>
    <script src="test/manyNodesTest.js"></script>
    <script src="test/pbfTest.js"></script>

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