From f287b0c730f82913634ad94ed5412be2166f19a7 Mon Sep 17 00:00:00 2001 From: Arianrhod Sandlot Date: Thu, 23 Jan 2025 10:05:35 +0800 Subject: [PATCH] test: fix the 1px diff issue while testing in playwright --- playground/activate.ts | 5 +++++ playground/index.html | 17 +++++++++++++++++ src/classes/emulator.ts | 8 ++++---- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/playground/activate.ts b/playground/activate.ts index bcc2390..45c2ab7 100644 --- a/playground/activate.ts +++ b/playground/activate.ts @@ -102,7 +102,12 @@ const handlers = { }) document.body.append(image) }, + + exit() { + nostalgist.exit() + }, } + export function activate(mod: typeof Nostalgist_) { const nostalgistConfig = { style: { diff --git a/playground/index.html b/playground/index.html index f20840a..66eb588 100644 --- a/playground/index.html +++ b/playground/index.html @@ -9,12 +9,28 @@ @@ -47,6 +63,7 @@

Instance Methods

+