jnc-dialog
靶子 BASE=http://localhost:20098 容器=wt_h8_tp8
── 前台 default ──
✔ 前台 default: jncConfirm 已挂载 (got="function" want="function")
✔ 前台 default: jncAlert 已挂载 (got="function" want="function")
✔ 前台 default: jncPrompt 已挂载 (got="function" want="function")
✔ 前台 default: CSS 已加载(.jncdlg-box display) (got="flex" want="flex")
✔ 前台 default: 圆角 14px(与 AlbumMaker 同源) (got="14px" want="14px")
✔ 前台 default: z-index 高于 BS3 modal/colorbox (got="100000" want="100000")
✔ 前台 default: confirm 点确定 → true (got=true want=true)
✔ 前台 default: confirm 点取消 → false (got=false want=false)
✔ 前台 default: Esc → false(等价取消) (got=false want=false)
✔ 前台 default: alert 只有 1 个按钮(无取消) (got=1 want=1)
✔ 前台 default: alert resolve undefined (got="undefined" want="undefined")
✔ 前台 default: 关闭后 DOM 已移除 (got=0 want=0)
✔ 前台 default: prompt 返回输入值 (got="hello" want="hello")
✔ 前台 default: prompt 取消 → null(同原生) (got="null" want="null")
✔ 前台 default: prompt password 掩码 (got="password" want="password")
✔ 前台 default: XSS 文案未被解析成 DOM (got=0 want=0)
✔ 前台 default: onerror 未执行 (got=false want=false)
✔ 前台 default: 原文按字面显示 (got=true want=true)
✔ 前台 default: 点遮罩不关闭 (got=1 want=1)
✔ 前台 default: 多行文案保留换行 (got="pre-wrap" want="pre-wrap")
✔ 前台 default: JncDialog.custom 已挂载 (got="function" want="function")
✔ 前台 default: custom 的 html 被解析成真 DOM (got=true want=true)
✔ 前台 default: custom 的 title 不被解析(只有 html 是 innerHTML) (got=0 want=0)
✔ 前台 default: custom title 按字面显示 (got="<b>标题不该被解析</b>" want="<b>标题不该被解析</b>")
✔ 前台 default: custom 无页脚按钮(按钮由 html 自带) (got=0 want=0)
✔ 前台 default: custom width 生效(视口够宽时取 490px) (got="490px" want="490px")
✔ 前台 default: 🔴 onOpen 在挂载【之后】调用(能按 id 找到元素) (got=true want=true)
✔ 前台 default: custom body 带专用 class (got="jncdlg-body jncdlg-body-custom" want="jncdlg-body jncdlg-body-custom")
✔ 前台 default: 🔴 custom 不劫持 Enter(按下后弹窗仍在) (got=1 want=1)
✔ 前台 default: custom 之上可以再叠一层 (got=2 want=2)
✔ 前台 default: 🔴 Esc 只关掉栈顶那一个(custom 还在) (got=1 want=1)
✔ 前台 default: 再按 Esc 关掉 custom,DOM 清干净 (got=0 want=0)
✔ 前台 default: handle.close() 关闭并触发 onClose (got="left=0 closed=1" want="left=0 closed=1")
✔ 前台: 页面正常渲染(守卫)
── 后台 Admin ──
✔ 后台 Admin: jncConfirm 已挂载 (got="function" want="function")
✔ 后台 Admin: jncAlert 已挂载 (got="function" want="function")
✔ 后台 Admin: jncPrompt 已挂载 (got="function" want="function")
✔ 后台 Admin: CSS 已加载(.jncdlg-box display) (got="flex" want="flex")
✔ 后台 Admin: 圆角 14px(与 AlbumMaker 同源) (got="14px" want="14px")
✔ 后台 Admin: z-index 高于 BS3 modal/colorbox (got="100000" want="100000")
✔ 后台 Admin: confirm 点确定 → true (got=true want=true)
✔ 后台 Admin: confirm 点取消 → false (got=false want=false)
✔ 后台 Admin: Esc → false(等价取消) (got=false want=false)
✔ 后台 Admin: alert 只有 1 个按钮(无取消) (got=1 want=1)
✔ 后台 Admin: alert resolve undefined (got="undefined" want="undefined")
✔ 后台 Admin: 关闭后 DOM 已移除 (got=0 want=0)
✔ 后台 Admin: prompt 返回输入值 (got="hello" want="hello")
✔ 后台 Admin: prompt 取消 → null(同原生) (got="null" want="null")
✔ 后台 Admin: prompt password 掩码 (got="password" want="password")
✔ 后台 Admin: XSS 文案未被解析成 DOM (got=0 want=0)
✔ 后台 Admin: onerror 未执行 (got=false want=false)
✔ 后台 Admin: 原文按字面显示 (got=true want=true)
✔ 后台 Admin: 点遮罩不关闭 (got=1 want=1)
✔ 后台 Admin: 多行文案保留换行 (got="pre-wrap" want="pre-wrap")
✔ 后台 Admin: JncDialog.custom 已挂载 (got="function" want="function")
✔ 后台 Admin: custom 的 html 被解析成真 DOM (got=true want=true)
✔ 后台 Admin: custom 的 title 不被解析(只有 html 是 innerHTML) (got=0 want=0)
✔ 后台 Admin: custom title 按字面显示 (got="<b>标题不该被解析</b>" want="<b>标题不该被解析</b>")
✔ 后台 Admin: custom 无页脚按钮(按钮由 html 自带) (got=0 want=0)
✔ 后台 Admin: custom width 生效(视口够宽时取 490px) (got="490px" want="490px")
✔ 后台 Admin: 🔴 onOpen 在挂载【之后】调用(能按 id 找到元素) (got=true want=true)
✔ 后台 Admin: custom body 带专用 class (got="jncdlg-body jncdlg-body-custom" want="jncdlg-body jncdlg-body-custom")
✔ 后台 Admin: 🔴 custom 不劫持 Enter(按下后弹窗仍在) (got=1 want=1)
✔ 后台 Admin: custom 之上可以再叠一层 (got=2 want=2)
✔ 后台 Admin: 🔴 Esc 只关掉栈顶那一个(custom 还在) (got=1 want=1)
✔ 后台 Admin: 再按 Esc 关掉 custom,DOM 清干净 (got=0 want=0)
✔ 后台 Admin: handle.close() 关闭并触发 onClose (got="left=0 closed=1" want="left=0 closed=1")
✔ 后台: 侧栏正常渲染(守卫)
PASS=68 FAIL=0