Skip to content

Commit

Permalink
Update tests to use a color that breaks with gamma changes
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Sep 20, 2022
1 parent b419ba7 commit cf3a3eb
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
Binary file modified tests/scenes/ambient-light.blend
Binary file not shown.
Binary file modified tests/scenes/directional-light.blend
Binary file not shown.
Binary file modified tests/scenes/environment-settings.blend
Binary file not shown.
Binary file modified tests/scenes/fog.blend
Binary file not shown.
Binary file modified tests/scenes/hemisphere-light.blend
Binary file not shown.
Binary file modified tests/scenes/particle-emitter.blend
Binary file not shown.
Binary file modified tests/scenes/point-light.blend
Binary file not shown.
Binary file modified tests/scenes/simple-water.blend
Binary file not shown.
Binary file modified tests/scenes/spot-light.blend
Binary file not shown.
Binary file modified tests/scenes/text.blend
Binary file not shown.
36 changes: 18 additions & 18 deletions tests/test/test_export.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ describe('Exporter', function () {
const ext = node.extensions['MOZ_hubs_components'];
assert.deepStrictEqual(ext, {
"directional-light": {
"color": "#ffffff",
"color": "#0cff00",
"intensity": 1,
"castShadow": false,
"shadowMapResolution": [
Expand All @@ -254,7 +254,7 @@ describe('Exporter', function () {
const ext = node.extensions['MOZ_hubs_components'];
assert.deepStrictEqual(ext, {
"point-light": {
"color": "#ffffff",
"color": "#0cff00",
"intensity": 1,
"range": 0,
"decay": 2,
Expand Down Expand Up @@ -282,7 +282,7 @@ describe('Exporter', function () {
const ext = node.extensions['MOZ_hubs_components'];
assert.deepStrictEqual(ext, {
"spot-light": {
"color": "#ffffff",
"color": "#0cff00",
"intensity": 1,
"range": 0,
"decay": 2,
Expand Down Expand Up @@ -312,7 +312,7 @@ describe('Exporter', function () {
const ext = node.extensions['MOZ_hubs_components'];
assert.deepStrictEqual(ext, {
"ambient-light": {
"color": "#ffffff",
"color": "#0cff00",
"intensity": 1
}
});
Expand All @@ -332,9 +332,9 @@ describe('Exporter', function () {
assert.deepStrictEqual(ext, {
"particle-emitter": {
"src": "",
"startColor": "#ffffff",
"middleColor": "#ffffff",
"endColor": "#ffffff",
"startColor": "#0cff00",
"middleColor": "#0cff00",
"endColor": "#0cff00",
"startOpacity": 1,
"middleOpacity": 1,
"endOpacity": 1,
Expand Down Expand Up @@ -377,9 +377,9 @@ describe('Exporter', function () {
assert.deepStrictEqual(ext, {
"particle-emitter": {
"src": "",
"startColor": "#ffffff",
"middleColor": "#ffffff",
"endColor": "#ffffff",
"startColor": "#0cff00",
"middleColor": "#0cff00",
"endColor": "#0cff00",
"startOpacity": 1,
"middleOpacity": 1,
"endOpacity": 1,
Expand Down Expand Up @@ -550,18 +550,18 @@ describe('Exporter', function () {
"textAlign": "left",
"anchorX": "center",
"anchorY": "middle",
"color": "#ffffff",
"color": "#0cff00",
"letterSpacing": 0,
"lineHeight": 0,
"outlineWidth": "0",
"outlineColor": "#000000",
"outlineColor": "#0cff00",
"outlineBlur": "0",
"outlineOffsetX": "0",
"outlineOffsetY": "0",
"outlineOpacity": 1,
"fillOpacity": 1,
"strokeWidth": "0",
"strokeColor": "#000000",
"strokeColor": "#0cff00",
"strokeOpacity": 1,
"textIndent": 0,
"whiteSpace": "normal",
Expand Down Expand Up @@ -832,7 +832,7 @@ describe('Exporter', function () {
assert.deepStrictEqual(ext, {
"fog": {
"type": "linear",
"color": "#ffffff",
"color": "#0cff00",
"near": 1,
"far": 100,
"density": 0.10000000149011612
Expand Down Expand Up @@ -884,7 +884,7 @@ describe('Exporter', function () {
"environment-settings": {
"toneMapping": "LUTToneMapping",
"toneMappingExposure": 1,
"backgroundColor": "#ffffff",
"backgroundColor": "#0cff00",
"backgroundTexture": {
"__mhc_link_type": "texture",
"index": 0
Expand Down Expand Up @@ -945,8 +945,8 @@ describe('Exporter', function () {
const ext = node.extensions['MOZ_hubs_components'];
assert.deepStrictEqual(ext, {
"hemisphere-light": {
"skyColor": "#ffffff",
"groundColor": "#ffffff",
"skyColor": "#0cff00",
"groundColor": "#0cff00",
"intensity": 1
}
});
Expand All @@ -965,7 +965,7 @@ describe('Exporter', function () {
const ext = node.extensions['MOZ_hubs_components'];
assert.deepStrictEqual(ext, {
"simple-water": {
"color": "#ffffff",
"color": "#0cff00",
"opacity": 1,
"tideHeight": 0.009999999776482582,
"tideScale": {
Expand Down

0 comments on commit cf3a3eb

Please sign in to comment.