sschmid 5 年 前
コミット
df3601705b
1 ファイル変更4 行追加2 行削除
  1. 4 2
      test/Util/generateImages_browserless.js

+ 4 - 2
test/Util/generateImages_browserless.js

@@ -6,9 +6,11 @@
 
   This can be used to generate PNGs from OSMD without a browser.
   It's also used with the visual regression test system in
-  `tools/visual_regression.sh`.
+  `tools/visual_regression.sh`
+  (see package.json, used with npm run generate:blessed and generate:current, then test:visual).
 
-  Note: this script needs to "fake" quite a few browser elements, like window, document, and a Canvas HTMLElement.
+  Note: this script needs to "fake" quite a few browser elements, like window, document, and a Canvas HTMLElement,
+  which otherwise are missing in pure nodejs, causing errors in OSMD.
   For that it needs the canvas package installed.
   There are also some hacks needed to set the container size (offsetWidth) correctly.