add tests passing wooo

pull/1721/head
Rich Harris 7 years ago
parent d18a3189e9
commit 98079fb782

2
.gitignore vendored

@ -11,6 +11,8 @@ node_modules
/test/cli/samples/*/actual /test/cli/samples/*/actual
/test/sourcemaps/samples/*/output.js /test/sourcemaps/samples/*/output.js
/test/sourcemaps/samples/*/output.js.map /test/sourcemaps/samples/*/output.js.map
/test/sourcemaps/samples/*/output.css
/test/sourcemaps/samples/*/output.css.map
/src/compile/shared.ts /src/compile/shared.ts
/store.umd.js /store.umd.js
/yarn-error.log /yarn-error.log

@ -219,7 +219,7 @@ export default class Component {
this.code = new MagicString(source); this.code = new MagicString(source);
// styles // styles
this.stylesheet = new Stylesheet(source, ast, this.file, options.dev); this.stylesheet = new Stylesheet(source, ast, options.filename, options.dev);
this.stylesheet.validate(this); this.stylesheet.validate(this);
// allow compiler to deconflict user's `import { get } from 'whatever'` and // allow compiler to deconflict user's `import { get } from 'whatever'` and

@ -1,2 +0,0 @@
.foo.svelte-sg04hs{color:red}
/*# sourceMappingURL=output.css.map */

@ -1,12 +0,0 @@
{
"version": 3,
"file": "output.css",
"sources": [
"input.html"
],
"sourcesContent": [
"<p class='foo'>red</p>\n\n<style>\n\t.foo {\n\t\tcolor: red;\n\t}\n</style>"
],
"names": [],
"mappings": "AAGC,IAAI,cAAC,CAAC,AACL,KAAK,CAAE,GAAG,AACX,CAAC"
}
Loading…
Cancel
Save