From 568ff32afe2461651fb68a55f12593d34fa94be7 Mon Sep 17 00:00:00 2001 From: kujirahand Date: Wed, 1 May 2024 11:15:32 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=81=AB=E5=A4=B1?= =?UTF-8?q?=E6=95=97=E3=81=99=E3=82=8B=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20#1638?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/common/plugin_browser_ut_dialog_test.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/common/plugin_browser_ut_dialog_test.mjs b/test/common/plugin_browser_ut_dialog_test.mjs index ff5a1a4b..38adbfb4 100644 --- a/test/common/plugin_browser_ut_dialog_test.mjs +++ b/test/common/plugin_browser_ut_dialog_test.mjs @@ -48,7 +48,8 @@ describe('plugin_browser_dialog', () => { chkprompt(['あいうえお'], 'あかね', 'あいうえお', 'あかね') }) it('尋 - キャンセル', () => { - const sys = { __v0: { 'ダイアログキャンセル値': '' } } + const v0 = new Map([['ダイアログキャンセル値', '']]) + const sys = { __v0: v0, __getSysVar: (key) => sys.__v0.get(key) } chkprompt(['あいうえお', sys], null, 'あいうえお', '') }) }) @@ -77,7 +78,8 @@ describe('plugin_browser_dialog', () => { chkprompt(['あいうえお'], '1.2.3', 'あいうえお', '1.2.3') }) it('文字尋 - キャンセル', () => { - const sys = { __v0: { 'ダイアログキャンセル値': '' } } + const v0 = new Map([['ダイアログキャンセル値', '']]) + const sys = { __v0: v0, __getSysVar: (key) => sys.__v0.get(key) } chkprompt(['あいうえお', sys], null, 'あいうえお', '') }) })