Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
huang2002 committed Feb 1, 2019
1 parent 5646a24 commit dfa3fec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/src/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ HUI.render<TestContext>(

<p>SVG test:</p>

<svg xmlns={SVG_NS} width="100" height="100" style={{ 'box-shadow': '0 0 10px #999' }}>
<svg xmlns={SVG_NS} attr={{ width: '100', height: '100' }} style={{ 'box-shadow': '0 0 10px #999' }}>
<path
xmlns={SVG_NS}
d="M 10 40 C 20 80 80 80 90 40"
Expand Down
3 changes: 2 additions & 1 deletion test/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
}

hr {
text-align: left;
width: 175px;
margin: 8px 0 8px;
}
Expand All @@ -19,7 +20,7 @@

<body>
<div id="portal"></div>
<script type="text/javascript" crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/hpolyfill" defer="defer"></script>
<script type="text/javascript" crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/hpolyfill@latest/dist/index.js" defer="defer"></script>
<script src="../dist/hyper-ui.core.umd.js" defer="defer"></script>
<script src="./test.js" defer="defer"></script>
</body>
Expand Down

0 comments on commit dfa3fec

Please sign in to comment.