зеркало из https://github.com/mozilla/shumway.git
16 строки
330 B
Stas
16 строки
330 B
Stas
|
// Simple text output comparison test script
|
||
|
|
||
|
run_test = function (t, file) {
|
||
|
print ("Testing " + file);
|
||
|
t.reset (file);
|
||
|
var expected = Buffer.load (file + ".trace");
|
||
|
t.advance (4000);
|
||
|
var diff = t.trace.diff (expected);
|
||
|
};
|
||
|
|
||
|
t = new Test ();
|
||
|
for (var i = 0; i < filenames.length; i++) {
|
||
|
run_test (t, filenames[i]);
|
||
|
}
|
||
|
|