зеркало из https://github.com/mozilla/shumway.git
Don't skip frames for testing
This commit is contained in:
Родитель
eb86162a5d
Коммит
926090913b
|
@ -27,6 +27,7 @@ var renderAsWireframe = rendererOptions.register(new Option("raw", "renderAsWire
|
|||
var showQuadTree = rendererOptions.register(new Option("qt", "showQuadTree", "boolean", false, "show quad tree"));
|
||||
var turboMode = rendererOptions.register(new Option("", "turbo", "boolean", false, "turbo mode"));
|
||||
var forceHidpi = rendererOptions.register(new Option("", "forceHidpi", "boolean", false, "force hidpi"));
|
||||
var skipFrameDraw = rendererOptions.register(new Option("", "skipFrameDraw", "boolean", true, "skip frame when not on time"));
|
||||
|
||||
|
||||
var enableConstructChildren = rendererOptions.register(new Option("", "constructChildren", "boolean", true, "Construct Children"));
|
||||
|
@ -749,6 +750,10 @@ function renderStage(stage, ctx, events) {
|
|||
var frameFPSAverage = new metrics.Average(120);
|
||||
|
||||
function drawFrame(renderFrame, frameRequested) {
|
||||
if (!skipFrameDraw.value) {
|
||||
frameRequested = true; // e.g. for testing we need to draw all frames
|
||||
}
|
||||
|
||||
sampleStart();
|
||||
|
||||
var refreshStage = false;
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
*/
|
||||
|
||||
turboMode.value = true;
|
||||
skipFrameDraw.value = false;
|
||||
|
||||
function loadMovie(path, reportFrames) {
|
||||
var movieReadyResolve;
|
||||
|
|
|
@ -11,7 +11,7 @@ run_test = function (t, file) {
|
|||
t.mouse_press (initx, inity);
|
||||
t.advance (100);
|
||||
t.mouse_move (initx + delta, inity);
|
||||
t.advance (1600);
|
||||
t.advance (1400);
|
||||
t.mouse_release (initx + delta, inity);
|
||||
t.advance (100);
|
||||
var diff = t.trace.diff (expected);
|
||||
|
|
Загрузка…
Ссылка в новой задаче