<!DOCTYPE html>
<html>
<head>
	<title>Lawnchair Spec</title>

	<link rel="stylesheet" href="lib/qunit.css" type="text/css" media="screen">
	
    <script src="lib/qunit.js"></script>
    <script src="lib/json2.js"></script>
    <script src="lib/lawnchair.js"></script>
    <script src="lawnchair-spec.js"></script>

	<script>
		// autostart seems to be a little eager
		QUnit.config.autostart = false
		// kill qunit saves
		try{ sessionStorage.clear(); } catch(e){}
		// kickup the chair
		var store = new Lawnchair({name:'tests'}, function(){
			QUnit.start()
		})
    </script>
</head>
<body>
	<h1 id="qunit-header">Lawnchair Spec</h1>
    <h2 id="qunit-banner"></h2>
    <h2 id="qunit-userAgent"></h2>
    <ol id="qunit-tests"></ol>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
	<title>Lawnchair Spec</title>

	<link rel="stylesheet" href="lib/qunit.css" type="text/css" media="screen">
	
    <script src="lib/qunit.js"></script>
    <script src="lib/json2.js"></script>
    <script src="lib/lawnchair.js"></script>
    <script src="lawnchair-spec.js"></script>

	<script>

		// autostart seems to be a little eager
		QUnit.config.autostart = false

		// kill qunit saves
		try{ sessionStorage.clear(); } catch(e){}

        var store;

        function startTests() {

            // allow restriction of adapter in URL (e.g., ?adapter=ie-userdata)
            var allowed = /adapter=([-\w]+)/.exec(window.location.href),
                adapters = Lawnchair.adapters,
                i;

            if (allowed) {
                for (i = 0; i < adapters.length; ) {
                    if (adapters[i].adapter == allowed[1]) {
                        i++;
                    } else {
                        adapters.splice(i, 1)
                    }
                }

                if (adapters.length == 0) {
                    alert("no such adapter: " + allowed[1]);
                }

                if (!adapters[0].valid()) {
                    alert("adapter " + allowed[1] + " is not valid in this environment");
                }
            }

            // kickup the chair
            store = new Lawnchair({name:'tests'}, function(){
                QUnit.start()
            })

        }

    </script>
</head>
<body onload="startTests()">
	<h1 id="qunit-header">Lawnchair Spec</h1>
    <h2 id="qunit-banner"></h2>
    <h2 id="qunit-userAgent"></h2>
    <ol id="qunit-tests"></ol>
</body>
</html>

Enable specification of adapter to use for unit tests.
Enable specification of adapter to use for unit tests.
