Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into fix-height
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed Sep 17, 2024
2 parents 8dfab57 + 9c44062 commit 8899db8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions react/test/test_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,20 +151,5 @@ export function urbanstatsFixture(name: string, url: string, beforeEach: undefin
if (beforeEach !== undefined) {
await beforeEach(t)
}
// print out the outer size of the window
console.log(`Outer size: ${await t.eval(() => [window.outerWidth, window.outerHeight])}`)
// print out the size of the inner window
console.log(`Inner size: ${await t.eval(() => [window.innerWidth, window.innerHeight])}`)
// print out the size of the body element
console.log(`Body size is now ${await t.eval(() => [document.body.clientWidth, document.body.clientHeight])}`)
})
}

// export async function setInnerSize(t: TestController, width: number, height: number): Promise<void> {
// await t.resizeWindow(width, height)
// await t.eval(() => { location.reload() })
// // console.log(`Resized window to ${newWidth}x${newHeight}`)
// // console.log(`Inner size is now ${await t.eval(() => [window.innerWidth, window.innerHeight])}`)
// // // print out the size of the body element
// // console.log(`Body size is now ${await t.eval(() => [document.body.clientWidth, document.body.clientHeight])}`)
// }
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cd react

for browser in "chrome --no-first-run '--window-size=1400,800' --hide-scrollbars --disable-gpu"; do
for test_file in test/*_test.ts ; do
npx testcafe -e "$browser" $test_file
npx testcafe -e "$browser" $test_file -s thumbnails=false
done
done

Expand Down

0 comments on commit 8899db8

Please sign in to comment.