Skip to content

Style testing

karak edited this page Apr 28, 2018 · 4 revisions

Style testing

It is useful to test <style> section easily.

We could have special shorthands to test 'show' directive show and other utility.

Design

We should construct the APIs on computedStyle or runtimeStyle API to make them meaningful.

Ideally, we could do up to their appearance in clients' sight. Are they in the visible area on screen? Are their contents overflown? …etc.

Platform issues

Abandoned styles

Now, we must fight against riot itself, for Riot inject <style> section into the global document. So, we must find the way to destroy those garbages on riot.unregister to keep reproducibility of our tests. Now, fixed.

Clone this wiki locally