@@ -3,7 +3,7 @@
* For licensing, see LICENSE.md.
*/
-import normalizeHtml from '/tests/utils/_utils/normalizehtml.js';
+import normalizeHtml from 'tests/utils/_utils/normalizehtml.js';
describe( 'utils', () => {
describe( 'normalizeHtml', () => {
@@ -3,10 +3,10 @@
-import testUtils from '/tests/core/_utils/utils.js';
-import utilsTestUtils from '/tests/utils/_utils/utils.js';
-import ObesrvableMixin from '/ckeditor5/utils/observablemixin.js';
-import EmitterMixin from '/ckeditor5/utils/emittermixin.js';
+import testUtils from 'tests/core/_utils/utils.js';
+import utilsTestUtils from 'tests/utils/_utils/utils.js';
+import ObesrvableMixin from 'ckeditor5/utils/observablemixin.js';
+import EmitterMixin from 'ckeditor5/utils/emittermixin.js';
testUtils.createSinonSandbox();
@@ -3,8 +3,8 @@
-import HtmlDataProcessor from '/ckeditor5/engine/dataprocessor/htmldataprocessor.js';
-import { stringify } from '/ckeditor5/engine/dev-utils/view.js';
+import HtmlDataProcessor from 'ckeditor5/engine/dataprocessor/htmldataprocessor.js';
+import { stringify } from 'ckeditor5/engine/dev-utils/view.js';
/**
* Parses given string of HTML and returns normalized HTML.
@@ -5,7 +5,7 @@
/* global console:false */
const utils = {
-import CKEditorError from '/ckeditor5/utils/ckeditorerror.js';
+import CKEditorError from 'ckeditor5/utils/ckeditorerror.js';
describe( 'CKEditorError', () => {
it( 'inherits from Error', () => {
@@ -3,9 +3,9 @@
-import Collection from '/ckeditor5/utils/collection.js';
+import Collection from 'ckeditor5/utils/collection.js';
-import compareArrays from '/ckeditor5/utils/comparearrays.js';
+import compareArrays from 'ckeditor5/utils/comparearrays.js';
describe( 'compareArrays', () => {
-import Config from '/ckeditor5/utils/config.js';
+import Config from 'ckeditor5/utils/config.js';
let config;
-import count from '/ckeditor5/utils/count.js';
+import count from 'ckeditor5/utils/count.js';
describe( 'count', () => {
-import diff from '/ckeditor5/utils/diff.js';
+import diff from 'ckeditor5/utils/diff.js';
describe( 'diff', () => {
it( 'should diff strings', () => {
-import diffToChanges from '/ckeditor5/utils/difftochanges.js';
+import diffToChanges from 'ckeditor5/utils/difftochanges.js';
describe( 'diffToChanges', () => {
describe( 'equal patterns', () => {
@@ -6,7 +6,7 @@
/* globals document */
/* bender-tags: dom, browser-only */
-import createElement from '/ckeditor5/utils/dom/createelement.js';
+import createElement from 'ckeditor5/utils/dom/createelement.js';
describe( 'createElement', () => {
it( 'should create element', () => {
@@ -6,8 +6,8 @@
-import getAncestors from '/ckeditor5/utils/dom/getancestors.js';
+import getAncestors from 'ckeditor5/utils/dom/getancestors.js';
describe( 'getAncestors', () => {
it( 'should return all parents of given node and the node itself, starting from top-most parent', () => {
-import getCommonAncestor from '/ckeditor5/utils/dom/getcommonancestor.js';
+import getCommonAncestor from 'ckeditor5/utils/dom/getcommonancestor.js';
describe( 'getParents', () => {
let b, span1, span2, p1, p2, i, div;
-import getDataFromElement from '/ckeditor5/utils/dom/getdatafromelement.js';
+import getDataFromElement from 'ckeditor5/utils/dom/getdatafromelement.js';
describe( 'getDataFromElement', () => {
let divEl;
-import indexOf from '/ckeditor5/utils/dom/indexof.js';
+import indexOf from 'ckeditor5/utils/dom/indexof.js';
describe( 'indexOf', () => {
it( 'should return 0 if element has no parent', () => {
-import insertAt from '/ckeditor5/utils/dom/insertat.js';
+import insertAt from 'ckeditor5/utils/dom/insertat.js';
describe( 'insertAt', () => {
it( 'should insert at given position', () => {
-import remove from '/ckeditor5/utils/dom/remove.js';
+import remove from 'ckeditor5/utils/dom/remove.js';
describe( 'remove', () => {
it( 'should remove element form parent', () => {
-import setDataInElement from '/ckeditor5/utils/dom/setdatainelement.js';
+import setDataInElement from 'ckeditor5/utils/dom/setdatainelement.js';
describe( 'setDataInElement', () => {
[ 'textarea', 'template', 'div' ].forEach( ( elementName ) => {
/* bender-tags: dom */
-import toUnit from '/ckeditor5/utils/dom/tounit.js';
+import toUnit from 'ckeditor5/utils/dom/tounit.js';
describe( 'toUnit', () => {
it( 'should be a function', () => {
/* bender-tags: browser-only */
-import ElementReplacer from '/ckeditor5/utils/elementreplacer.js';
+import ElementReplacer from 'ckeditor5/utils/elementreplacer.js';
describe( 'ElementReplacer', () => {
let replacer;
-import EventInfo from '/ckeditor5/utils/eventinfo.js';
+import EventInfo from 'ckeditor5/utils/eventinfo.js';
let emitter, listener;
-import env, { isMac } from '/ckeditor5/utils/env.js';
+import env, { isMac } from 'ckeditor5/utils/env.js';
describe( 'Env', () => {
beforeEach( () => {
describe( 'EventInfo', () => {
it( 'should be created properly', () => {
@@ -5,9 +5,9 @@
/* global document, Event */
-import FocusTracker from '/ckeditor5/utils/focustracker.js';
+import FocusTracker from 'ckeditor5/utils/focustracker.js';
-import isIterable from '/ckeditor5/utils/isiterable.js';
+import isIterable from 'ckeditor5/utils/isiterable.js';
describe( 'isIterable', () => {
-import env from '/ckeditor5/utils/env.js';
-import { keyCodes, getCode, parseKeystroke, getEnvKeystrokeText } from '/ckeditor5/utils/keyboard.js';
+import env from 'ckeditor5/utils/env.js';
+import { keyCodes, getCode, parseKeystroke, getEnvKeystrokeText } from 'ckeditor5/utils/keyboard.js';
describe( 'Keyboard', () => {
describe( 'keyCodes', () => {
-import Locale from '/ckeditor5/utils/locale.js';
+import Locale from 'ckeditor5/utils/locale.js';
describe( 'Locale', () => {
let locale;
-import extend from '/ckeditor5/utils/lib/lodash/extend.js';
+import extend from 'ckeditor5/utils/lib/lodash/extend.js';
describe( 'extend()', () => {
/* globals console */
-import log from '/ckeditor5/utils/log.js';
+import log from 'ckeditor5/utils/log.js';
let spy;
-import mapsEqual from '/ckeditor5/utils/mapsequal.js';
+import mapsEqual from 'ckeditor5/utils/mapsequal.js';
describe( 'mapsEqual', () => {
-import mix from '/ckeditor5/utils/mix.js';
+import mix from 'ckeditor5/utils/mix.js';
describe( 'mix', () => {
-import nth from '/ckeditor5/utils/nth.js';
+import nth from 'ckeditor5/utils/nth.js';
describe( 'nth', () => {
@@ -3,13 +3,13 @@
-import ObservableMixin from '/ckeditor5/utils/observablemixin.js';
+import ObservableMixin from 'ckeditor5/utils/observablemixin.js';
const assertBinding = utilsTestUtils.assertBinding;
-import priorities from '/ckeditor5/utils/priorities.js';
+import priorities from 'ckeditor5/utils/priorities.js';
describe( 'get', () => {
it( 'should return correct value for string priority', () => {
-import spy from '/ckeditor5/utils/spy.js';
+import spy from 'ckeditor5/utils/spy.js';
describe( 'spy', () => {
-import toMap from '/ckeditor5/utils/tomap.js';
+import toMap from 'ckeditor5/utils/tomap.js';
describe( 'toMap', () => {
-import uid from '/ckeditor5/utils/uid.js';
+import uid from 'ckeditor5/utils/uid.js';
describe( 'uid', () => {
@@ -9,7 +9,7 @@ import {
isCombiningMark,
isInsideSurrogatePair,
isInsideCombinedSymbol
-} from '/ckeditor5/utils/unicode.js';
+} from 'ckeditor5/utils/unicode.js';
describe( 'unicode', () => {