Use the 'unittest' library. 
Main program should use dart:html and have a blank html page.
Something like:
class BlendStateTests {
  static run() {
    group('BlendState', () {
       // tests here.
    });
  }
}

main() {
  BlendStateTests.run();
}