WIP Experiment: combine gradient and background image into background-image
#110712
Annotations
2 errors and 1 warning
packages/style-engine/src/test/index.js#L272
Error: expect(received).toEqual(expected) // deep equality
- Expected - 6
+ Received + 1
@@ -3,15 +3,10 @@
"key": "color",
"selector": ".some-selector",
"value": "#dddddd",
},
Object {
- "key": "background",
- "selector": ".some-selector",
- "value": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(33,32,33) 42%,rgb(65,88,208) 100%)",
- },
- Object {
"key": "backgroundColor",
"selector": ".some-selector",
"value": "#555555",
},
Object {
@@ -110,11 +105,11 @@
"value": "10px 10px red",
},
Object {
"key": "backgroundImage",
"selector": ".some-selector",
- "value": "url( 'https://example.com/image.jpg' )",
+ "value": "linear-gradient(135deg,rgb(255,203,112) 0%,rgb(33,32,33) 42%,rgb(65,88,208) 100%), url( 'https://example.com/image.jpg' )",
},
Object {
"key": "backgroundPosition",
"selector": ".some-selector",
"value": "50% 50%",
at Object.toEqual (/home/runner/work/gutenberg/gutenberg/packages/style-engine/src/test/index.js:272:5)
at Promise.then.completed (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:300:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/utils.js:233:10)
at _callCircusTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:315:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:251:3)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:125:9)
at _runTestsForDescribeBlock (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:120:9)
at run (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/run.js:70:3)
at runAndTransformResultsToJestFormat (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/gutenberg/gutenberg/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/gutenberg/gutenberg/node_modules/jest-runner/build/testWorker.js:106:12)
|
|
|
This job failed
Loading