shumway/test/swfs/button.stas

21 строка
434 B
Stas

// buttonX.swf test script
run_test = function (t, file) {
print ("Testing " + file);
t.reset (file);
var expected = Buffer.load (file + ".trace");
t.advance (200);
t.mouse_move (250, 200);
t.advance (200);
t.mouse_press (250, 200);
t.advance (200);
t.mouse_release (250, 200);
var diff = t.trace.diff (expected);
};
t = new Test ();
for (var i = 0; i < filenames.length; i++) {
run_test (t, filenames[i]);
}