DailyJS

WebGL X-Wing, JS Test Runner, Lists.js

Alex R. Young

Subscribe

@dailyjs

Facebook

Google+

HTML testing webgl

WebGL X-Wing, JS Test Runner, Lists.js

Posted by Alex R. Young on .
Featured

HTML testing webgl

WebGL X-Wing, JS Test Runner, Lists.js

Posted by Alex R. Young on .

WebGL X-Wing

It's not impossible! I used to bullseye womp rats in my T-16 back home, they're not much bigger than two meters.

WebGL X-Wing is a simple game demo where an X-wing is piloted through the Death Star
trench run. It's created by
@oosmoxiecode, and the author has a whole load of other WebGL demos here: OutsideOfSociety WebGL
demos
.

JS Test Runner

JS Test Runner (License: Apache License 2.0) by Christopher Hunt runs tests in a browser simulator
(PhantomJS), and works well with JUnit so it's easy to integrate with Maven's Surefire plugin. The author notes
that the project doesn't depend on Maven, but should work well with
anything that can run JUnit tests.

If you're used to working with Eclipse then JS Test Runner should fit
into your workflow very well.

Sample usage of JS Test Runner looks like this:

import org.codehaus.jstestrunner.junit.JSTestSuiteRunner;
import org.junit.runner.RunWith;

/**
 * Run all JS tests associated with this project.
 */
@RunWith(JSTestSuiteRunner.class)
public class SuiteUT {
}

Lists.js

Lists.js (GitHub: javve / list, License: MIT) by Jonny Strömberg
is a small library for adding extra filtering options to HTML lists.
It's native JavaScript rather than framework-dependent, so the API is a
simple class:

new List('list', { valueNames: [ 'name', 'city' ] });

There are some interesting Lists.js
examples
which include references to
LucasArts games -- proof, if any is needed, that the author is a man of
impeccable taste.