mirror of https://github.com/sveltejs/svelte
parent
c9e17eb601
commit
211a91acdc
@ -1,7 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
skip: true, // TODO no template mappings
|
||||
client: ['foo'],
|
||||
css: [{ str: '.foo', strGenerated: '.foo.svelte-sg04hs' }]
|
||||
});
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
export function test({ assert, input, css }) {
|
||||
const expected = input.locate('.foo');
|
||||
|
||||
const start = css.locate('.foo');
|
||||
|
||||
const actual = css.mapConsumer.originalPositionFor({
|
||||
line: start.line + 1,
|
||||
column: start.column
|
||||
});
|
||||
|
||||
assert.deepEqual(actual, {
|
||||
source: 'input.svelte',
|
||||
name: null,
|
||||
line: expected.line + 1,
|
||||
column: expected.column
|
||||
});
|
||||
}
|
||||
@ -1,6 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
skip: true, // TODO no mapping for bar
|
||||
client: ['foo', 'bar', { str: 'bar', idxGenerated: 1, idxOriginal: 1 }]
|
||||
});
|
||||
|
||||
@ -1,18 +0,0 @@
|
||||
export function test({ assert, input, js }) {
|
||||
const start_index = js.code.indexOf('create_main_fragment');
|
||||
|
||||
const expected = input.locate('each');
|
||||
const start = js.locate('length', start_index);
|
||||
|
||||
const actual = js.mapConsumer.originalPositionFor({
|
||||
line: start.line + 1,
|
||||
column: start.column
|
||||
});
|
||||
|
||||
assert.deepEqual(actual, {
|
||||
source: 'input.svelte',
|
||||
name: null,
|
||||
line: expected.line + 1,
|
||||
column: expected.column
|
||||
});
|
||||
}
|
||||
Loading…
Reference in new issue