From cbc99e3627368a387a948379d4226702f799146f Mon Sep 17 00:00:00 2001 From: Sunoru Date: Thu, 8 Dec 2022 12:00:41 +0800 Subject: [PATCH] Add test for `Base.show`. --- .github/workflows/TagBot.yml | 13 +++++++++++++ Project.toml | 2 +- test/runtests.jl | 6 ++++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index f389611..90dc100 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -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' @@ -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 }} diff --git a/Project.toml b/Project.toml index bb62483..05ea517 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Webviews" uuid = "b7e775b7-052a-4229-9250-fe08ae90f9c6" authors = ["Sunoru "] -version = "1.0.1" +version = "1.0.2" [deps] Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6" diff --git a/test/runtests.jl b/test/runtests.jl index 1350424..aba9af3 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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 = """

Hello from Julia v$VERSION

""" step = 0 @@ -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