From a4047af8d18f7fb546350991574b67aaf66c79b4 Mon Sep 17 00:00:00 2001 From: Diya Date: Thu, 1 Feb 2024 16:34:29 +0530 Subject: [PATCH] screenshot for visual test --- test/unit/visual/cases/webgl.js | 3 ++- .../000.png | Bin 0 -> 275 bytes .../metadata.json | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 test/unit/visual/screenshots/WebGL/3DModel/OBJ model with MTL file displays diffuse colors correctly/000.png create mode 100644 test/unit/visual/screenshots/WebGL/3DModel/OBJ model with MTL file displays diffuse colors correctly/metadata.json diff --git a/test/unit/visual/cases/webgl.js b/test/unit/visual/cases/webgl.js index 413820148c..61760ebdeb 100644 --- a/test/unit/visual/cases/webgl.js +++ b/test/unit/visual/cases/webgl.js @@ -35,9 +35,10 @@ visualSuite('WebGL', function() { }); }); - visualSuite('3D Model rendering', function() { + visualSuite('3DModel', function() { visualTest('OBJ model with MTL file displays diffuse colors correctly', function(p5, screenshot) { return new Promise(resolve => { + console.log('inside test'); p5.createCanvas(50, 50, p5.WEBGL); p5.loadModel('unit/assets/octa-color.obj', model => { p5.background(200); diff --git a/test/unit/visual/screenshots/WebGL/3DModel/OBJ model with MTL file displays diffuse colors correctly/000.png b/test/unit/visual/screenshots/WebGL/3DModel/OBJ model with MTL file displays diffuse colors correctly/000.png new file mode 100644 index 0000000000000000000000000000000000000000..0f583fec9df737658ab502364d0a9efe82b9f99a GIT binary patch literal 275 zcmV+u0qp*XP)Px#%}GQ-RA@u(lEDqcAPfYPmhz$|3Zf>zXz5N+0rGmKC>q}E%AWBZ5x?sL?`Dyg zS;WZ8gj^WGh=~BFWdfV7#Yh^RDTomh*mNyM(&$VKry=ViYlzm`o@I<-wPIgnS#h7$0%c$1^fc6eETR&u z&SRvSsM?1Sm0)!qBh^IJK8&aYtMeGCCaU&fL?u|A$4E6%wGSgI!RkCls)?$77*PpU Z=l?%owlQ?1#YF%B002ovPDHLkV1g#@bPfOj literal 0 HcmV?d00001 diff --git a/test/unit/visual/screenshots/WebGL/3DModel/OBJ model with MTL file displays diffuse colors correctly/metadata.json b/test/unit/visual/screenshots/WebGL/3DModel/OBJ model with MTL file displays diffuse colors correctly/metadata.json new file mode 100644 index 0000000000..2d4bfe30da --- /dev/null +++ b/test/unit/visual/screenshots/WebGL/3DModel/OBJ model with MTL file displays diffuse colors correctly/metadata.json @@ -0,0 +1,3 @@ +{ + "numScreenshots": 1 +} \ No newline at end of file