Skip to content

Commit

Permalink
test: more manual test (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Dec 19, 2019
1 parent 3415266 commit a283b30
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/manual/index.html
Expand Up @@ -60,6 +60,11 @@ <h3>Pure css</h3>
</article>
</section>

<section>
<h3>Use/Unuse</h3>
<div class="use">No color after timeout 6000ms</div>
</section>

<section>
<h3>Custom element</h3>
<custom-square l="100" c="red"></custom-square>
Expand Down
7 changes: 7 additions & 0 deletions test/manual/src/index.js
Expand Up @@ -4,6 +4,7 @@ import './style.css';
import './other-style.scss';
import component from './component.module.css';
import styleLazy from './style.lazy.css';
import useUnse from './use-unuse.lazy.css';
import otherStyleLazy from './other-style.lazy.scss';
import componentLazy from './component.lazy.module.css';
import './style.link.css';
Expand Down Expand Up @@ -89,3 +90,9 @@ articleElement2.appendChild(divElement7);
articleElement2.appendChild(divElement8);

document.querySelectorAll('section')[1].appendChild(articleElement2);

const api = useUnse.use();

setTimeout(() => {
api.unuse();
}, 6000);
3 changes: 3 additions & 0 deletions test/manual/src/use-unuse.lazy.css
@@ -0,0 +1,3 @@
.use {
color: red;
}

0 comments on commit a283b30

Please sign in to comment.