update tests

pull/2963/head
Conduitry 5 years ago
parent cd4c2f2075
commit e5d4162092

@ -49,6 +49,7 @@ virtualConsole.sendTo(console);
global.window = new jsdom.JSDOM('<main></main>', {virtualConsole}).window;
global.document = window.document;
global.requestAnimationFrame = null; // placeholder, filled in using set_raf
// add missing ecmascript globals to window
for (const key of Object.getOwnPropertyNames(global)) {

@ -4,11 +4,9 @@ import {
add_render_callback,
init,
listen,
navigator,
noop,
run_all,
safe_not_equal,
window
safe_not_equal
} from "svelte/internal";
function create_fragment(ctx) {

@ -3,7 +3,6 @@ import {
SvelteComponent,
append,
detach,
document,
element,
init,
insert,

@ -3,7 +3,6 @@ import {
SvelteComponent,
append,
detach,
document,
element,
init,
insert,

@ -1,7 +1,6 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteElement,
customElements,
detach,
element,
init,

@ -1,11 +1,8 @@
/* generated by Svelte vX.Y.Z */
import {
Error,
Object,
SvelteComponentDev,
add_location,
append,
console,
detach,
element,
init,

@ -1,11 +1,8 @@
/* generated by Svelte vX.Y.Z */
import {
Error,
Object,
SvelteComponentDev,
add_location,
append,
console,
destroy_each,
detach,
element,

@ -1,11 +1,8 @@
/* generated by Svelte vX.Y.Z */
import {
Error,
Object,
SvelteComponentDev,
add_location,
append,
console,
destroy_each,
detach,
element,

@ -1,8 +1,6 @@
/* generated by Svelte vX.Y.Z */
import {
Error,
SvelteComponentDev,
console,
init,
noop,
safe_not_equal

@ -1,6 +1,5 @@
/* generated by Svelte vX.Y.Z */
import {
Object,
SvelteComponent,
append,
destroy_each,

@ -1,11 +1,8 @@
/* generated by Svelte vX.Y.Z */
import {
Error,
Object,
SvelteComponentDev,
add_location,
append,
console,
detach,
element,
init,

@ -1,6 +1,5 @@
/* generated by Svelte vX.Y.Z */
import {
Object,
SvelteComponent,
append,
destroy_each,

@ -1,6 +1,5 @@
/* generated by Svelte vX.Y.Z */
import {
Object,
SvelteComponent,
append,
destroy_each,

@ -1,7 +1,5 @@
/* generated by Svelte vX.Y.Z */
import {
Map,
Object,
SvelteComponent,
append,
create_animation,

@ -1,7 +1,5 @@
/* generated by Svelte vX.Y.Z */
import {
Map,
Object,
SvelteComponent,
append,
destroy_block,

@ -3,7 +3,6 @@ import {
SvelteComponent,
append,
detach,
document,
element,
init,
noop,

@ -2,12 +2,10 @@
import {
SvelteComponent,
add_render_callback,
cancelAnimationFrame,
detach,
element,
init,
insert,
isNaN,
listen,
noop,
raf,

@ -1,7 +1,6 @@
/* generated by Svelte vX.Y.Z */
import {
SvelteComponent,
document,
init,
noop,
safe_not_equal

@ -3,7 +3,6 @@ import {
SvelteComponent,
add_render_callback,
append,
clearTimeout,
detach,
element,
init,
@ -11,10 +10,8 @@ import {
listen,
noop,
safe_not_equal,
setTimeout,
set_data,
text,
window
text
} from "svelte/internal";
function create_fragment(ctx) {
@ -45,7 +42,7 @@ function create_fragment(ctx) {
if (changed.y && !scrolling) {
scrolling = true;
clearTimeout(scrolling_timeout);
window.scrollTo(window.pageXOffset, ctx.y);
scrollTo(pageXOffset, ctx.y);
scrolling_timeout = setTimeout(clear_scrolling, 100);
}

Loading…
Cancel
Save