|
|
@@ -13,7 +13,7 @@
|
|
|
* TC-SIG2D-01b 模板不渲染 h5DegradeHint/.rotate-hint(本轮未重新引入)
|
|
|
* TC-SIG2D-01c 调 wx.setPageOrientation(landscape + portrait)
|
|
|
* TC-SIG2D-01d~01j 行为级:H5 降级不切横屏 / success+complete 重算高度 / 窗口监听成对注册注销 / doBack 恢复竖屏 / onUnload 清理
|
|
|
- * TC-SIG2D-02 computeCanvasHeight 保留(174/214 两档 + 160 下限)
|
|
|
+ * TC-SIG2D-02 computeCanvasHeight 保留(134/170 两档 + 160 下限)
|
|
|
* S4-2 canvas 2d(hand-signature.vue,不回归)
|
|
|
* TC-SIG2D-03~07、01-E、02-E 保持不变
|
|
|
* TC-SIG2D-07b height watch 仅在值变化且非 savingLive/销毁时重建(书写中不丢笔迹)
|
|
|
@@ -264,9 +264,9 @@ describe('恢复签名页自动横屏 + canvas 2d 不回归 · signature.canvas2
|
|
|
expect(seq).toEqual(['offResize', 'orient:portrait'])
|
|
|
})
|
|
|
|
|
|
- test('TC-SIG2D-02 computeCanvasHeight 保留竖屏计算(174/214 两档 + 160 下限)', function () {
|
|
|
- expect(makePage(390, false).computeCanvasHeight()).toBe(390 - 174)
|
|
|
- expect(makePage(390, true).computeCanvasHeight()).toBe(390 - 214)
|
|
|
+ test('TC-SIG2D-02 computeCanvasHeight 保留横屏计算(134/170 两档 + 160 下限)', function () {
|
|
|
+ expect(makePage(390, false).computeCanvasHeight()).toBe(390 - 134)
|
|
|
+ expect(makePage(390, true).computeCanvasHeight()).toBe(390 - 170)
|
|
|
expect(makePage(200, true).computeCanvasHeight()).toBe(160)
|
|
|
})
|
|
|
|