<!doctype html>
<meta charset=utf8>
<title>CodeMirror view tests</title>

<h1>CodeMirror view tests</h1>

<div id="workspace" style="opacity: 0; position: fixed; top: 0; left: 0; width: 20em;"></div>

<div id=mocha></div>

<script  type="module">
  import mocha from "mocha/mocha"
  import 'mocha/mocha.css'
 
  let options = {ui: "bdd"}
  if (/\?.*\bselenium\b/.test(document.location)) options.reporter = function Reporter(runner, options) {
    let passed = [], pending = [], failures = []
    runner.on("pass