Skip to content

Commit

Permalink
Add test for Base.show.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunoru committed Dec 8, 2022
1 parent a7ca4a0 commit cbc99e3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ on:
lookback:
default: 3
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
Expand All @@ -17,4 +28,6 @@ jobs:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
ssh: ${{ secrets.DOCUMENTER_KEY }}
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Webviews"
uuid = "b7e775b7-052a-4229-9250-fe08ae90f9c6"
authors = ["Sunoru <[email protected]>"]
version = "1.0.1"
version = "1.0.2"

[deps]
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
Expand Down
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ using Webviews
title="Test",
debug=true
)
@test window_handle(webview) != C_NULL
window = window_handle(webview)
@test window != C_NULL
@test string(webview) == "Webview (0 bindings): $window"
resize!(webview, (320, 240))
html = """<html><body><h1>Hello from Julia v$VERSION</h1></body></html>"""
step = 0
Expand Down Expand Up @@ -50,5 +52,5 @@ using Webviews
init!(webview, "run_test().catch(console.error)")
navigate!(webview, "data:text/html,$(HTTP.escapeuri(html))")
run(webview)
@test Test.get_testset().n_passed == 7
@test Test.get_testset().n_passed == 8
end

2 comments on commit cbc99e3

@sunoru
Copy link
Owner Author

@sunoru sunoru commented on cbc99e3 Dec 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/73701

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.2 -m "<description of version>" cbc99e3627368a387a948379d4226702f799146f
git push origin v1.0.2

Please sign in to comment.