fix tests to use the npm jquery

master
JFH 2021-05-23 17:59:18 +02:00
parent 812bc2371c
commit 4a0b69a46b
16 changed files with 32 additions and 28 deletions

View File

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="83" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="#696969" d="M0 0h41v20H0z"/><path fill="#4c1" d="M41 0h42v20H41z"/><path fill="url(#smooth)" d="M0 0h83v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Tests</text><text class="high" x="5" y="14">Tests</text><text class="shadow" x="46.5" y="15">21/21</text><text class="high" x="46" y="14">21/21</text></g></svg> <svg xmlns="http://www.w3.org/2000/svg" width="97" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="#696969" d="M0 0h41v20H0z"/><path fill="#4c1" d="M41 0h56v20H41z"/><path fill="url(#smooth)" d="M0 0h97v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Tests</text><text class="high" x="5" y="14">Tests</text><text class="shadow" x="46.5" y="15">139/139</text><text class="high" x="46" y="14">139/139</text></g></svg>

Before

Width:  |  Height:  |  Size: 816 B

After

Width:  |  Height:  |  Size: 820 B

View File

@ -1,4 +1,5 @@
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import * as contextmenu from '../../../instrumented/editor/contextmenu.js'; import * as contextmenu from '../../../instrumented/editor/contextmenu.js';
describe('contextmenu', function () { describe('contextmenu', function () {

View File

@ -1,5 +1,5 @@
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';
import * as utilities from '../../../instrumented/svgcanvas/utilities.js'; import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
import * as coords from '../../../instrumented/svgcanvas/coords.js'; import * as coords from '../../../instrumented/svgcanvas/coords.js';

View File

@ -1,5 +1,5 @@
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';
import * as draw from '../../../instrumented/svgcanvas/draw.js'; import * as draw from '../../../instrumented/svgcanvas/draw.js';
import * as units from '../../../instrumented/common/units.js'; import * as units from '../../../instrumented/common/units.js';

View File

@ -1,5 +1,5 @@
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';
import * as transformlist from '../../../instrumented/svgcanvas/svgtransformlist.js'; import * as transformlist from '../../../instrumented/svgcanvas/svgtransformlist.js';
import * as utilities from '../../../instrumented/svgcanvas/utilities.js'; import * as utilities from '../../../instrumented/svgcanvas/utilities.js';

View File

@ -1,5 +1,5 @@
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';
import * as math from '../../../instrumented/svgcanvas/math.js'; import * as math from '../../../instrumented/svgcanvas/math.js';

View File

@ -1,7 +1,7 @@
/* globals SVGPathSeg */ /* globals SVGPathSeg */
import 'pathseg'; import 'pathseg';
import $ from 'jquery';
import '../../../instrumented/editor/jquery.min.js'; window.$ = $;
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';
import * as utilities from '../../../instrumented/svgcanvas/utilities.js'; import * as utilities from '../../../instrumented/svgcanvas/utilities.js';

View File

@ -1,10 +1,11 @@
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';
import * as utilities from '../../../instrumented/svgcanvas/utilities.js'; import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
import * as coords from '../../../instrumented/svgcanvas/coords.js'; import * as coords from '../../../instrumented/svgcanvas/coords.js';
import * as recalculate from '../../../instrumented/svgcanvas/recalculate.js'; import * as recalculate from '../../../instrumented/svgcanvas/recalculate.js';
describe('recalculate', function () { describe('recalculate', function () {
// eslint-disable-next-line no-shadow // eslint-disable-next-line no-shadow
const root = document.createElement('div'); const root = document.createElement('div');

View File

@ -1,5 +1,5 @@
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';
import * as sanitize from '../../../instrumented/svgcanvas/sanitize.js'; import * as sanitize from '../../../instrumented/svgcanvas/sanitize.js';

View File

@ -1,5 +1,5 @@
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import * as select from '../../../instrumented/svgcanvas/select.js'; import * as select from '../../../instrumented/svgcanvas/select.js';
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';

View File

@ -1,5 +1,5 @@
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';
import * as transformlist from '../../../instrumented/svgcanvas/svgtransformlist.js'; import * as transformlist from '../../../instrumented/svgcanvas/svgtransformlist.js';
import { disableSupportsNativeTransformLists } from '../../../instrumented/common/browser.js'; import { disableSupportsNativeTransformLists } from '../../../instrumented/common/browser.js';

View File

@ -1,5 +1,6 @@
/* eslint-disable max-len, no-console */ /* eslint-disable max-len, no-console */
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import SvgCanvas from '../../../instrumented/svgcanvas/svgcanvas.js'; import SvgCanvas from '../../../instrumented/svgcanvas/svgcanvas.js';

View File

@ -1,5 +1,5 @@
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import * as units from '../../../instrumented/common/units.js'; import * as units from '../../../instrumented/common/units.js';
describe('units', function () { describe('units', function () {

View File

@ -1,7 +1,7 @@
/* eslint-disable max-len */ /* eslint-disable max-len */
import 'pathseg'; import 'pathseg';
import $ from 'jquery';
import '../../../instrumented/editor/jquery.min.js'; window.$ = $;
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';
import * as utilities from '../../../instrumented/svgcanvas/utilities.js'; import * as utilities from '../../../instrumented/svgcanvas/utilities.js';

View File

@ -1,6 +1,7 @@
/* eslint-disable max-len, no-console */ /* eslint-disable max-len, no-console */
import 'pathseg'; import 'pathseg';
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';
import * as utilities from '../../../instrumented/svgcanvas/utilities.js'; import * as utilities from '../../../instrumented/svgcanvas/utilities.js';

View File

@ -1,6 +1,6 @@
/* eslint-disable max-len */ /* eslint-disable max-len */
import '../../../instrumented/editor/jquery.min.js'; import $ from 'jquery';
window.$ = $;
import * as browser from '../../../instrumented/common/browser.js'; import * as browser from '../../../instrumented/common/browser.js';
import * as utilities from '../../../instrumented/svgcanvas/utilities.js'; import * as utilities from '../../../instrumented/svgcanvas/utilities.js';
import { NS } from '../../../instrumented/common/namespaces.js'; import { NS } from '../../../instrumented/common/namespaces.js';