module( "load", { teardown: moduleTeardown } );

asyncTest( "jar.load - js", function() {
    var path = "//" + window.location.host + window.location.pathname + "data/data.js";

    jar( "jar.load - js" ).done(function() {
        this.clear().done(function() {

            // through xhr-request
            jar.load( path, "js", "jar.load - js" ).done(function( data, base ) {
                ok( data.length, "Data is returned" );
                ok( js, "Variable is assigned" );
                ok( base instanceof jar, "Second argument is instace of jar" );

                // cleanup
                window.js = undefined;

                // wait a bit, so data can be writed
                window.setTimeout(function() {
                    ok( jar.has( "jar.load - js", path ), "Meta-data should be intializated" );

                    // through jar-store
                    jar.load( path, "js", "jar.load - js" ).done(function( data, base ) {
                        ok( data.length, "Data is returned" );
                        ok( js, "Variable is assigned" );
                        ok( base instanceof jar, "Second argument is instace of jar" );

                        // cleanup
                        window.js = undefined;

                        start();
                    });
                }, 100 );
            });
        });
    });
});

asyncTest( "jar.load - xml", function() {
    var path = "//" + window.location.host + window.location.pathname + "data/data.xml";

    jar( "jar.load - xml" ).done(function() {
        this.clear().done(function() {

            // through xhr-request
            jar.load( path, "xml", "jar.load - xml" ).done(function( data, base ) {
                strictEqual( jar.type( data ), "xml", "Data is returned" );
                ok( base instanceof jar, "Second argument is instace of jar" );

                // wait a bit, so data can be writed
                window.setTimeout(function() {
                    ok( jar.has( "jar.load - xml", path ), "Meta-data should be intializated" );

                    // through jar-store
                    jar.load( path, "xml", "jar.load - xml" ).done(function( data, base ) {
                        strictEqual( jar.type( data ), "xml", "Data is returned" );
                        ok( base instanceof jar, "Second argument is instace of jar" );

                        start();
                    });
                }, 100 );
            });
        });
    });
});

asyncTest( "jar.load - css", function() {
    var path = "//" + window.location.host + window.location.pathname + "data/data.css";

    jar( "jar.load - css" ).done(function() {
        this.clear().done(function() {

            // through xhr-request
            jar.load( path, "css", "jar.load - css" ).done(function( data, base ) {
                var element = jQuery( '<div class="load-test"></div>' ).appendTo( "#qunit-fixture" );
                strictEqual( element.css( "font-size" ), "99px", "css style should be applied" );

                ok( base instanceof jar, "Second argument is instace of jar" );

                // wait a bit, so data can be writed
                window.setTimeout(function() {
                    ok( jar.has( "jar.load - css", path ), "Meta-data should be intializated" );

                    // through jar-store
                    jar.load( path, "css", "jar.load - css" ).done(function( data, base ) {
                        ok( base instanceof jar, "Second argument is instace of jar" );

                        start();
                    });
                }, 100 );
            });
        });
    });
});
@@ -537,32 +537,33 @@
 rgument is insta
+n
 ce of jar%22 );%0A%0A 
@@ -552,32 +552,32 @@
 ance of jar%22 );%0A
-
 %0A               
@@ -1143,32 +1143,33 @@
 rgument is insta
+n
 ce of jar%22 );%0A%0A 
@@ -1845,32 +1845,33 @@
 rgument is insta
+n
 ce of jar%22 );%0A%0A 
@@ -2350,32 +2350,33 @@
 rgument is insta
+n
 ce of jar%22 );%0A%0A 
@@ -3094,32 +3094,33 @@
 rgument is insta
+n
 ce of jar%22 );%0A%0A 
@@ -3441,32 +3441,32 @@
  data, base ) %7B%0A
-
                 
@@ -3523,16 +3523,17 @@
 is insta
+n
 ce of ja

Fix typo