-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RenderProgram unit test file, see: #2
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2023, University of Colorado Boulder | ||
|
||
/** | ||
* Testing for RenderProgram vs a simplified RenderProgram | ||
* | ||
* @author Marla Schulz (PhET Interactive Simulations) | ||
* | ||
*/ | ||
|
||
import { RenderColor } from '../imports.js'; | ||
import Vector4 from '../../../dot/js/Vector4.js'; | ||
|
||
QUnit.module( 'RenderProgram' ); | ||
|
||
QUnit.test( 'color', assert => { | ||
const renderColorProgram = new RenderColor( new Vector4( 245, 40, 145, 0.8 ) ); | ||
|
||
assert.equal( renderColorProgram.getName(), 'RenderColor' ); | ||
} ); |