<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>JIO webDav Storage Qunit Live Tests</title>
  <link rel="stylesheet" href="../../lib/qunit/qunit.css" />
  <script src="../../lib/qunit/qunit.js"></script>

  <script src="../../src/promy/promy.js"></script>
  <script src="../../src/sha256.amd.js"></script>
  <script src="../../jio.js"></script>
  <script src="../../complex_queries.js"></script>
  <script src="../../src/jio.storage/davstorage.js"></script>
  <script src="../jio/util.js"></script>
</head>
<body>
  <script>
var davstorage_spec = {};
location.href.split('?')[1].split('&').forEach(function (item) {
  davstorage_spec[item.split('=')[0]] = decodeURI(item.split('=').slice(1).join('=')).
    replace(/%3A/ig, ':').replace(/%2F/ig, '/');
});
  </script>
  <h3>JIO initialization</h3>
  <form method="get" action="">
    <input type="hidden" name="type" value="dav"/>
    <input type="text" name="url" placeholder="URL"/>
    <input type="text" name="auth_type" value="basic" placeholder="Authentication type"/>
    <input type="text" name="username" placeholder="Username"/>
    <input type="password" name="password" placeholder="Password"/>
    <input type="submit" value="Run Tests"/>
  </form>
  <br />
  <div id="qunit"></div>
  <script src="davstorage.tests.js"></script>
</body>
</html>