Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
wang1212 committed Nov 21, 2024
1 parent 6167ea0 commit 1d6e9c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions __tests__/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>G: Preview</title>
<style>
/* html {
html {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
margin: 0;
padding: 8px;
} */
}

.lil-gui.root {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion __tests__/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function createSpecRender(object) {
$stats.style.position = 'fixed';
$stats.style.left = '2px';
$stats.style.top = '2px';
// document.body.appendChild($stats);
document.body.appendChild($stats);

// GUI
const gui = new lil.GUI({ autoPlace: false });
Expand Down
1 change: 1 addition & 0 deletions __tests__/unit/abstract-renderer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('Abstract renderer', () => {
enableCulling: false,
enableDirtyRectangleRendering: true,
enableDirtyRectangleRenderingDebug: false,
enableRenderingOptimization: false,
enableSizeAttenuation: true,
});

Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/display-objects/display-object.node.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ describe('DisplayObject Node API', () => {
group1.find(() => {
return true;
}),
).toBe(group4);
).toBe(group2);

expect(
group1.findAll(() => {
Expand Down

0 comments on commit 1d6e9c1

Please sign in to comment.