Skip to content

Commit e69c8ad

Browse files
committed
test: css validation unit tests
1 parent 646b97c commit e69c8ad

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

test/test-css.worker.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,6 @@ describe(`web worker CSS Language tests`, async function () {
101101
* important: none
102102
*/
103103

104-
it("should validate css argumentsInColorFunction", async function () {
105-
const cssValidationData = await (await fetch("test-files/cssValidationData.json")).json();
106-
messageFromWorker = null;
107-
const text = `div {
108-
background-color: rgba ( 10,20,30,40,50);
109-
}`;
110-
worker.postMessage({
111-
command: `validateCSS`, text, cssMode: "CSS", filePath: "file:///c.css", lintSettings: {
112-
argumentsInColorFunction: "warning"
113-
}
114-
});
115-
let output = await waitForWorkerMessage(`validateCSS`, 1000);
116-
const symbols = output.diag;
117-
expect(symbols).to.deep.equal(cssValidationData["argumentsInColorFunction"]);
118-
});
119-
120104
it("should validate css unknownVendorSpecificProperties", async function () {
121105
const cssValidationData = await (await fetch("test-files/cssValidationData.json")).json();
122106
messageFromWorker = null;

0 commit comments

Comments
 (0)