-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(text/flow/sliver): more feat merge
- Loading branch information
Showing
125 changed files
with
2,404 additions
and
537 deletions.
There are no files selected for viewing
Binary file modified
BIN
-128 Bytes
(97%)
integration_tests/snapshots/css/css-display/block-in-inline.ts.ad3d93702.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+135 Bytes
(100%)
integration_tests/snapshots/css/css-display/block-in.ts.39bde26f1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+773 Bytes
(110%)
integration_tests/snapshots/css/css-display/inline-block.ts.1f1f3e361.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+948 Bytes
(110%)
integration_tests/snapshots/css/css-display/inline-flex.ts.c4e3c1611.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+23 Bytes
(100%)
...ts/snapshots/css/css-display/insert-inline-in-blocks-n-inlines.ts.3b7638541.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+201 Bytes
(100%)
...ts/snapshots/css/css-display/insert-inline-in-blocks-n-inlines.ts.3b7638542.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-63 Bytes
(100%)
...ts/snapshots/css/css-display/insert-inline-in-blocks-n-inlines.ts.8fd203eb1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+16 Bytes
(100%)
...ts/snapshots/css/css-display/insert-inline-in-blocks-n-inlines.ts.8fd203eb2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+138 Bytes
(100%)
...ts/snapshots/css/css-display/insert-inline-in-blocks-n-inlines.ts.f61efc181.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-6 Bytes
(100%)
...ts/snapshots/css/css-display/insert-inline-in-blocks-n-inlines.ts.f61efc182.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-167 Bytes
(99%)
integration_tests/snapshots/css/css-flexbox/flex-direction.ts.2df7b7231.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-291 Bytes
(98%)
integration_tests/snapshots/css/css-flexbox/flex-direction.ts.455816bc1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.39 KB
(91%)
integration_tests/snapshots/css/css-flexbox/flex-flow.ts.36301fc31.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.39 KB
(91%)
integration_tests/snapshots/css/css-flexbox/flex-flow.ts.464764351.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.39 KB
(91%)
integration_tests/snapshots/css/css-flexbox/flex-flow.ts.566d64a71.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.39 KB
(91%)
integration_tests/snapshots/css/css-flexbox/flex-flow.ts.761cd85a1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.39 KB
(91%)
integration_tests/snapshots/css/css-flexbox/flex-flow.ts.bc829b361.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.39 KB
(91%)
integration_tests/snapshots/css/css-flexbox/flex-flow.ts.cc83947c1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.39 KB
(91%)
integration_tests/snapshots/css/css-flexbox/flex-flow.ts.ee33e4a01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.39 KB
(91%)
integration_tests/snapshots/css/css-flexbox/flex-flow.ts.fb0247df1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-487 Bytes
(98%)
integration_tests/snapshots/css/css-flexbox/justify-content_flex.ts.5da0bc641.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-758 Bytes
(97%)
integration_tests/snapshots/css/css-flexbox/justify-content_flex.ts.e141f1091.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-605 Bytes
(98%)
integration_tests/snapshots/css/css-flexbox/justify-content_space.ts.dc3e32751.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.95 KB
(94%)
integration_tests/snapshots/css/css-flexbox/justify-content_space.ts.f986e23e1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.77 KB
(95%)
integration_tests/snapshots/css/css-flexbox/justify.ts.4950bfd01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-197 Bytes
(98%)
integration_tests/snapshots/css/css-flexbox/layout-algorithm_algo.ts.375f3d511.png
Oops, something went wrong.
Binary file modified
BIN
-197 Bytes
(98%)
integration_tests/snapshots/css/css-flexbox/layout-algorithm_algo.ts.8060a5d71.png
Oops, something went wrong.
Binary file modified
BIN
+28 Bytes
(100%)
integration_tests/snapshots/css/css-flow/block-non.ts.0cff45ad1.png
Oops, something went wrong.
Binary file modified
BIN
-16 Bytes
(100%)
integration_tests/snapshots/css/css-flow/block-non.ts.2cdd5a9c1.png
Oops, something went wrong.
Binary file modified
BIN
-20 Bytes
(100%)
integration_tests/snapshots/css/css-flow/block-non.ts.2e7761d31.png
Oops, something went wrong.
Binary file modified
BIN
+3 Bytes
(100%)
integration_tests/snapshots/css/css-flow/block-non.ts.3ef0fe981.png
Oops, something went wrong.
Binary file modified
BIN
+23 Bytes
(100%)
integration_tests/snapshots/css/css-flow/block-non.ts.829b80da1.png
Oops, something went wrong.
Binary file modified
BIN
+26 Bytes
(100%)
integration_tests/snapshots/css/css-flow/block-non.ts.ad0540a41.png
Oops, something went wrong.
Binary file modified
BIN
+17 Bytes
(100%)
integration_tests/snapshots/css/css-flow/block-non.ts.d38ef3a11.png
Oops, something went wrong.
Binary file modified
BIN
-30 Bytes
(100%)
integration_tests/snapshots/css/css-flow/block-non.ts.e8e1d2c81.png
Oops, something went wrong.
Binary file modified
BIN
+16 Bytes
(100%)
integration_tests/snapshots/css/css-flow/block-non.ts.f4e989f01.png
Oops, something went wrong.
Binary file modified
BIN
-599 Bytes
(97%)
integration_tests/snapshots/css/css-flow/block-replaced.ts.3799ae211.png
Oops, something went wrong.
Binary file modified
BIN
-766 Bytes
(96%)
integration_tests/snapshots/css/css-flow/block-replaced.ts.47736b0b1.png
Oops, something went wrong.
Binary file modified
BIN
-7 Bytes
(100%)
integration_tests/snapshots/css/css-flow/block-replaced.ts.a8fd3b061.png
Oops, something went wrong.
Binary file modified
BIN
-755 Bytes
(96%)
integration_tests/snapshots/css/css-flow/block-replaced.ts.d95d2def1.png
Oops, something went wrong.
Binary file modified
BIN
-113 Bytes
(99%)
integration_tests/snapshots/css/css-flow/blocks-020.ts.29213bd71.png
Oops, something went wrong.
Binary file modified
BIN
-73 Bytes
(99%)
integration_tests/snapshots/css/css-flow/blocks.ts.11a2f8281.png
Oops, something went wrong.
Binary file modified
BIN
+30 Bytes
(100%)
integration_tests/snapshots/css/css-flow/dynamic-change.ts.148ab8cc2.png
Oops, something went wrong.
Binary file modified
BIN
-747 Bytes
(95%)
integration_tests/snapshots/css/css-position/absolute-non.ts.1671a72c1.png
Oops, something went wrong.
Binary file modified
BIN
-472 Bytes
(97%)
integration_tests/snapshots/css/css-position/absolute-non.ts.1ba2be631.png
Oops, something went wrong.
Binary file modified
BIN
-128 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.1faea1811.png
Oops, something went wrong.
Binary file modified
BIN
-520 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-non.ts.2ec0e8211.png
Oops, something went wrong.
Binary file modified
BIN
-472 Bytes
(97%)
integration_tests/snapshots/css/css-position/absolute-non.ts.4168daf71.png
Oops, something went wrong.
Binary file modified
BIN
-128 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.475572bc1.png
Oops, something went wrong.
Binary file modified
BIN
+17 Bytes
(100%)
integration_tests/snapshots/css/css-position/absolute-non.ts.47f6b6241.png
Oops, something went wrong.
Binary file modified
BIN
-159 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.4dbf9d351.png
Oops, something went wrong.
Binary file modified
BIN
-526 Bytes
(97%)
integration_tests/snapshots/css/css-position/absolute-non.ts.51c382551.png
Oops, something went wrong.
Binary file modified
BIN
-570 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-non.ts.623f49421.png
Oops, something went wrong.
Binary file modified
BIN
-635 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-non.ts.687729941.png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
integration_tests/snapshots/css/css-position/absolute-non.ts.71b0ed491.png
Oops, something went wrong.
Binary file modified
BIN
-128 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.71b47a5e1.png
Oops, something went wrong.
Binary file modified
BIN
-469 Bytes
(97%)
integration_tests/snapshots/css/css-position/absolute-non.ts.77026f641.png
Oops, something went wrong.
Binary file modified
BIN
-128 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.85caffe21.png
Oops, something went wrong.
Binary file modified
BIN
-128 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.87a4244c1.png
Oops, something went wrong.
Binary file modified
BIN
+21 Bytes
(100%)
integration_tests/snapshots/css/css-position/absolute-non.ts.894585601.png
Oops, something went wrong.
Binary file modified
BIN
-159 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.8ef8ebbe1.png
Oops, something went wrong.
Binary file modified
BIN
-128 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.96867ec21.png
Oops, something went wrong.
Binary file modified
BIN
-140 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.9c8d15ac1.png
Oops, something went wrong.
Binary file modified
BIN
+4 Bytes
(100%)
integration_tests/snapshots/css/css-position/absolute-non.ts.a42d8d0b1.png
Oops, something went wrong.
Binary file modified
BIN
-128 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.ad355b021.png
Oops, something went wrong.
Binary file modified
BIN
-575 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-non.ts.bfc213a01.png
Oops, something went wrong.
Binary file modified
BIN
-128 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.c4ee88501.png
Oops, something went wrong.
Binary file modified
BIN
-746 Bytes
(95%)
integration_tests/snapshots/css/css-position/absolute-non.ts.ca2df7151.png
Oops, something went wrong.
Binary file modified
BIN
+16 Bytes
(100%)
integration_tests/snapshots/css/css-position/absolute-non.ts.e4cd0e7d1.png
Oops, something went wrong.
Binary file modified
BIN
-128 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.e6f1ab091.png
Oops, something went wrong.
Binary file modified
BIN
-257 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.f39edc251.png
Oops, something went wrong.
Binary file modified
BIN
-128 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-non.ts.fae2015e1.png
Oops, something went wrong.
Binary file modified
BIN
+21 Bytes
(100%)
integration_tests/snapshots/css/css-position/absolute-non.ts.fcd260181.png
Oops, something went wrong.
Binary file modified
BIN
-636 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.1684aa951.png
Oops, something went wrong.
Binary file modified
BIN
+33 Bytes
(100%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.39306d7d1.png
Oops, something went wrong.
Binary file modified
BIN
-636 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.421d44661.png
Oops, something went wrong.
Binary file modified
BIN
-484 Bytes
(97%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.4d0a2ac31.png
Oops, something went wrong.
Binary file modified
BIN
-518 Bytes
(97%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.56c6e05f1.png
Oops, something went wrong.
Binary file modified
BIN
-636 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.764782aa1.png
Oops, something went wrong.
Binary file modified
BIN
-113 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.87abd2da1.png
Oops, something went wrong.
Binary file modified
BIN
-79 Bytes
(99%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.982d53fd1.png
Oops, something went wrong.
Binary file modified
BIN
-484 Bytes
(97%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.9fee6fee1.png
Oops, something went wrong.
Binary file modified
BIN
-632 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.b1f1c20e1.png
Oops, something went wrong.
Binary file modified
BIN
-7 Bytes
(100%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.e4a441071.png
Oops, something went wrong.
Binary file modified
BIN
-633 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.ea32e12c1.png
Oops, something went wrong.
Binary file modified
BIN
-636 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.eb168f561.png
Oops, something went wrong.
Binary file modified
BIN
-636 Bytes
(96%)
integration_tests/snapshots/css/css-position/absolute-replaced.ts.efeb33e41.png
Oops, something went wrong.
Binary file modified
BIN
-96 Bytes
(99%)
integration_tests/snapshots/css/css-position/bottom-offset.ts.3feffd051.png
Oops, something went wrong.
Binary file modified
BIN
-132 Bytes
(99%)
integration_tests/snapshots/css/css-position/bottom-offset.ts.41f7703c1.png
Oops, something went wrong.
Binary file modified
BIN
-169 Bytes
(99%)
integration_tests/snapshots/css/css-position/top-offset.ts.7019b7531.png
Oops, something went wrong.
Binary file modified
BIN
-1.31 KB
(88%)
integration_tests/snapshots/css/css-text-decor/text-shadow.ts.01f5a96a1.png
Oops, something went wrong.
Binary file modified
BIN
-501 Bytes
(99%)
integration_tests/snapshots/css/css-text-decor/text-shadow.ts.13c9173d1.png
Oops, something went wrong.
Binary file modified
BIN
-191 Bytes
(97%)
integration_tests/snapshots/css/css-text-decor/text-shadow.ts.c19f00e81.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file modified
BIN
-99 Bytes
(99%)
integration_tests/snapshots/dom/elements/pre.ts.3745c23b1.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,294 @@ | ||
describe('Text Line Join', () => { | ||
it('works with pre span', async () => { | ||
let p = createElement( | ||
'p', | ||
{ | ||
xmlns: 'http://www.w3.org/1999/xhtml', | ||
style: { | ||
direction: 'ltr', | ||
}, | ||
}, | ||
[ | ||
createElement( | ||
'String', | ||
{ | ||
style: {}, | ||
}, | ||
[createText(`Begin `)] | ||
), | ||
createText(` pre text.`) | ||
] | ||
); | ||
document.body.appendChild(p); | ||
await snapshot(); | ||
}); | ||
|
||
it('works with pre span and second line break', async () => { | ||
let p = createElement( | ||
'p', | ||
{ | ||
xmlns: 'http://www.w3.org/1999/xhtml', | ||
style: { | ||
direction: 'ltr', | ||
}, | ||
}, | ||
[ | ||
createElement( | ||
'Strong', | ||
{ | ||
style: {}, | ||
}, | ||
[createText(`pre text, `)] | ||
), | ||
createText(`this is very long long long line to build break. `) | ||
] | ||
); | ||
document.body.appendChild(p); | ||
await snapshot(); | ||
}); | ||
|
||
it('works with pre span and first line break', async () => { | ||
let p = createElement( | ||
'p', | ||
{ | ||
xmlns: 'http://www.w3.org/1999/xhtml', | ||
style: { | ||
direction: 'ltr', | ||
}, | ||
}, | ||
[ | ||
createElement( | ||
'Strong', | ||
{ | ||
style: {}, | ||
}, | ||
[ | ||
createText(`Begin, his is very long long long line to build break, `), | ||
createText(`pre text.`), | ||
] | ||
), | ||
] | ||
); | ||
document.body.appendChild(p); | ||
await snapshot(); | ||
}); | ||
|
||
it('works with more text join', async () => { | ||
let p = createElement( | ||
'p', | ||
{ | ||
xmlns: 'http://www.w3.org/1999/xhtml', | ||
style: { | ||
direction: 'ltr', | ||
}, | ||
}, | ||
[ | ||
createElement( | ||
'Strong', | ||
{ | ||
style: {}, | ||
}, | ||
[ | ||
createText(`A text with `), | ||
createText(`B text.`), | ||
createText(`C text. Join next text.`), | ||
createText(`pre text.`)], | ||
), | ||
] | ||
); | ||
document.body.appendChild(p); | ||
await snapshot(); | ||
}); | ||
|
||
it('works with inlineBlock', async () => { | ||
let p = createElement( | ||
'p', | ||
{ | ||
xmlns: 'http://www.w3.org/1999/xhtml', | ||
style: { | ||
direction: 'ltr', | ||
}, | ||
}, | ||
[ | ||
createElement('div', { | ||
style: { | ||
'background-color': 'green', | ||
height: '20px', | ||
width: '20px', | ||
'box-sizing': 'border-box', | ||
display: 'inline-block' | ||
}, | ||
}), | ||
createElement( | ||
'Strong ', | ||
{ | ||
style: {}, | ||
}, | ||
[ | ||
createText(`A text with `), | ||
createText(`B text.`), | ||
createText(`pre text.`)], | ||
), | ||
] | ||
); | ||
document.body.appendChild(p); | ||
await snapshot(); | ||
}); | ||
|
||
it('works with join two inline element', async () => { | ||
let div = createElement( | ||
'div', | ||
{ | ||
style: { | ||
width: '100px', | ||
backgroundColor:'#ff2' | ||
}, | ||
}, | ||
[ | ||
createElement('span', { | ||
style: { | ||
}, | ||
},[createText(`ffffffffffff`)]), | ||
createElement('span', { | ||
style: { | ||
}, | ||
},[createText(`In this article`),]), | ||
] | ||
); | ||
document.body.appendChild(div); | ||
await snapshot(); | ||
}); | ||
|
||
it('works with join two inline element and img', async () => { | ||
let div = createElement( | ||
'div', | ||
{ | ||
style: { | ||
width: '100px', | ||
backgroundColor:'#ff2' | ||
}, | ||
}, | ||
[ | ||
createElement('span', { | ||
style: { | ||
}, | ||
},[createText(`A`)]), | ||
createElement('span', { | ||
style: { | ||
}, | ||
},[ | ||
createElement('img', { | ||
src: 'assets/blue15x15.png', | ||
width: '15', | ||
height: '15', | ||
style: { | ||
}, | ||
}), | ||
createText(`In this article`), | ||
]), | ||
] | ||
); | ||
document.body.appendChild(div); | ||
await snapshot(); | ||
}); | ||
|
||
it('works with join two inline element and img and more text', async () => { | ||
let div = createElement( | ||
'div', | ||
{ | ||
style: { | ||
width: '100px', | ||
backgroundColor:'#ff2' | ||
}, | ||
}, | ||
[ | ||
createElement('span', { | ||
style: { | ||
}, | ||
},[createText(`AAA`)]), | ||
createElement('span', { | ||
style: { | ||
}, | ||
},[ | ||
createElement('img', { | ||
src: 'assets/blue15x15.png', | ||
width: '15', | ||
height: '15', | ||
style: { | ||
}, | ||
}), | ||
createText(`In this article`), | ||
]), | ||
] | ||
); | ||
document.body.appendChild(div); | ||
await snapshot(); | ||
}); | ||
|
||
it('works with join two inline element and img and more text', async () => { | ||
let div = createElement( | ||
'div', | ||
{ | ||
style: { | ||
width: '100px', | ||
backgroundColor:'#ff2' | ||
}, | ||
}, | ||
[ | ||
createElement('span', { | ||
style: { | ||
}, | ||
},[createText(`AAA`)]), | ||
createElement('span', { | ||
style: { | ||
}, | ||
},[ | ||
createText(`pre text`), | ||
createElement('img', { | ||
src: 'assets/blue15x15.png', | ||
width: '15', | ||
height: '15', | ||
style: { | ||
}, | ||
}), | ||
createText(`In this article, test of in the picture`), | ||
]), | ||
] | ||
); | ||
document.body.appendChild(div); | ||
await snapshot(); | ||
}); | ||
|
||
it('works with join two inline element and block', async () => { | ||
let div = createElement( | ||
'div', | ||
{ | ||
style: { | ||
width: '100px', | ||
backgroundColor:'#ff2' | ||
}, | ||
}, | ||
[ | ||
createElement('span', { | ||
style: { | ||
}, | ||
},[createText(`AAA`)]), | ||
createElement('span', { | ||
style: { | ||
}, | ||
},[ | ||
createText(`pre text`), | ||
createElement('div', { | ||
width: '15', | ||
height: '15', | ||
style: { | ||
}, | ||
}), | ||
createText(`In this article, test of in the picture`), | ||
]), | ||
] | ||
); | ||
document.body.appendChild(div); | ||
await snapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.