testRemoteJS

testRemoteJS is a simple helper function that works with Qunit and aim to simplify the testing of files loaded via javascript.

Usage

In your HTML

<link href="qunit.css" type="text/css" rel="stylesheet" />
<script src="qunit.js"></script>
<script src="testRemoteJS.js"></script>

In javascript

testRemoteJS('script.js', function() {
    expect(1);
    ok(foo, 'foo exists');
});

Get testRemoteJS @ github

This entry was posted in Plugins & engines. Bookmark the permalink.

Comments are closed.