
var movie = require('./index')();

exports['sanity'] = function(test) {
  test.expect(2)

  movie.run("/system/media/bootanimation.zip", function() {
    console.log("Movie stopped");
    test.ok(true);
    test.done();
    movie.hide();
    console.log("Movie hide");
  });

  setTimeout(function() {
    console.log("Timeout, stopping movie");
    movie.stop();
    test.ok(true);
  }, 1000);
}

@@ -1,10 +1,23 @@
-%0Avar m
+'use strict'%0A%0Alet M
 ovie
@@ -33,18 +33,16 @@
 e('.
-/index')()
+').Movie
 ;%0A%0Ae
@@ -95,16 +95,44 @@
 ect(2)%0A%0A
+  let movie = new Movie();%0A%0A
   movie.

Fix up silk-movie test