Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
straker committed Apr 3, 2023
1 parent 0c73325 commit fe74b82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/commons/color/stacking-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe('color.stackingContext', () => {
assert.deepEqual(stackingContext, [
{
vNode,
ancestor: undefined,
opacity: 1,
bgColor: new Color(0, 0, 0, 0),
blendMode: 'normal',
Expand All @@ -53,20 +54,23 @@ describe('color.stackingContext', () => {
assert.deepEqual(stackingContext, [
{
vNode: querySelectorAll(axe._tree[0], '#elm1')[0],
ancestor: undefined,
opacity: 1,
bgColor: new Color(0, 0, 0, 0),
blendMode: 'normal',
descendants: []
},
{
vNode: querySelectorAll(axe._tree[0], '#elm2')[0],
ancestor: undefined,
opacity: 1,
bgColor: new Color(0, 0, 0, 0),
blendMode: 'normal',
descendants: []
},
{
vNode,
ancestor: undefined,
opacity: 1,
bgColor: new Color(0, 0, 0, 0),
blendMode: 'normal',
Expand All @@ -89,19 +93,22 @@ describe('color.stackingContext', () => {
assert.deepEqual(stackingContext, [
{
vNode: querySelectorAll(axe._tree[0], '#elm1')[0],
ancestor: undefined,
opacity: 1,
bgColor: new Color(0, 0, 0, 0),
blendMode: 'normal',
descendants: [
{
vNode: querySelectorAll(axe._tree[0], '#elm2')[0],
ancestor: stackingContext[0],
opacity: 1,
bgColor: new Color(0, 0, 0, 0),
blendMode: 'normal',
descendants: []
},
{
vNode,
ancestor: stackingContext[0],
opacity: 1,
bgColor: new Color(0, 0, 0, 0),
blendMode: 'normal',
Expand All @@ -122,6 +129,7 @@ describe('color.stackingContext', () => {
assert.deepEqual(stackingContext, [
{
vNode,
ancestor: undefined,
opacity: 0.8,
bgColor: new Color(255, 0, 0, 0.5),
blendMode: 'difference',
Expand All @@ -143,12 +151,14 @@ describe('color.stackingContext', () => {
assert.deepEqual(stackingContext, [
{
vNode: querySelectorAll(axe._tree[0], '#elm1')[0],
ancestor: undefined,
opacity: 0.8,
bgColor: new Color(0, 0, 0, 0),
blendMode: 'normal',
descendants: [
{
vNode,
ancestor: stackingContext[0],
opacity: 1,
bgColor: new Color(0, 0, 0, 0),
blendMode: 'normal',
Expand Down

0 comments on commit fe74b82

Please sign in to comment.