update tests

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save