Skip to content

Commit 1bf072f

Browse files
authored
feature: update cssnano tests (#217)
1 parent 184f69d commit 1bf072f

6 files changed

+23
-4
lines changed

scripts/copy-cssnano-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
77
const root = path.join(__dirname, '..')
88

99
const REPO = 'https://github.com/cssnano/cssnano'
10-
const COMMIT = '90e9a2ec4c4e73f1be70f4ff059edb3d598eea63'
10+
const COMMIT = '60a9afa12e293f1a4cb1704e4ca07beb191b0dfa'
1111

1212
const getTestName = (line) => {
1313
return (

scripts/copy-vscode-css-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
77
const root = path.join(__dirname, '..')
88

99
const REPO = 'https://github.com/microsoft/vscode-css'
10-
const COMMIT = 'c216f777497265700ff336f739328e5197e012cd'
10+
const COMMIT = '0aac3e99db79920d8fdf29c56e4812f935bb0ca4'
1111

1212
const simplifyPrefix = (testName) => {
1313
return testName

test/baselines/cssnano-keep-all-property-at-the-top.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ CssPropertyName
1212
Punctuation
1313
Numeric
1414
Punctuation
15-
Unknown
15+
CssPropertyName
16+
Punctuation
17+
Numeric
18+
Punctuation
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CssSelector
2+
Punctuation
3+
CssPropertyName
4+
Punctuation
5+
Numeric
6+
Punctuation
7+
CssPropertyName
8+
Punctuation
9+
Numeric
10+
Punctuation
11+
CssPropertyName
12+
Punctuation
13+
Numeric
14+
Punctuation
15+
Unknown
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a{z-index:1;margin-top:0;margin:0}', 'a{margin:0;z-index:1}
1+
a{z-unknown:0;z-index:0;a-unknown:0;color:0}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
a{z-index:1;margin-top:0;margin:0}', 'a{margin:0;z-index:1}

0 commit comments

Comments
 (0)