|
|
@ -3,7 +3,7 @@ import * as path from "path";
|
|
|
|
import * as fs from "fs";
|
|
|
|
import * as fs from "fs";
|
|
|
|
import { rollup } from 'rollup';
|
|
|
|
import { rollup } from 'rollup';
|
|
|
|
import * as virtual from 'rollup-plugin-virtual';
|
|
|
|
import * as virtual from 'rollup-plugin-virtual';
|
|
|
|
import { clear_loops, set_now } from "../../internal.js";
|
|
|
|
import { clear_loops, set_now, set_raf } from "../../internal.js";
|
|
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
showOutput,
|
|
|
|
showOutput,
|
|
|
@ -101,7 +101,7 @@ describe("runtime", () => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
set_now(() => raf.time);
|
|
|
|
set_now(() => raf.time);
|
|
|
|
global.requestAnimationFrame = cb => {
|
|
|
|
set_raf(cb => {
|
|
|
|
let called = false;
|
|
|
|
let called = false;
|
|
|
|
raf.callback = () => {
|
|
|
|
raf.callback = () => {
|
|
|
|
if (!called) {
|
|
|
|
if (!called) {
|
|
|
@ -109,7 +109,7 @@ describe("runtime", () => {
|
|
|
|
cb();
|
|
|
|
cb();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
mod = require(`./samples/${dir}/main.svelte`);
|
|
|
|
mod = require(`./samples/${dir}/main.svelte`);
|
|
|
|