File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ function gridOutput(p5, fn){
1010
1111 //updates gridOutput
1212 fn . _updateGridOutput = function ( idT ) {
13+ if ( this . _renderer && this . _renderer instanceof p5 . RendererGL ) {
14+ if ( ! this . _didOutputGridWebGLMessage ) {
15+ this . _didOutputGridWebGLMessage = true ;
16+ console . error ( 'gridOutput() does not yet work in WebGL mode.' ) ;
17+ }
18+ return ;
19+ }
1320 //if html structure is not there yet
1421 if ( ! this . dummyDOM . querySelector ( `#${ idT } _summary` ) ) {
1522 return ;
Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ function textOutput(p5, fn){
1010
1111 //updates textOutput
1212 fn . _updateTextOutput = function ( idT ) {
13+ if ( this . _renderer && this . _renderer instanceof p5 . RendererGL ) {
14+ if ( ! this . _didOutputTextWebGLMessage ) {
15+ this . _didOutputTextWebGLMessage = true ;
16+ console . error ( 'textOutput() does not yet work in WebGL mode.' ) ;
17+ }
18+ return ;
19+ }
1320 //if html structure is not there yet
1421 if ( ! this . dummyDOM . querySelector ( `#${ idT } _summary` ) ) {
1522 return ;
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ suite('loadTable', function() {
8484 // TODO: Current parsing does not handle quoted fields
8585 const table = await mockP5Prototype . loadTable ( validFile ) ;
8686 assert . equal ( table . getRowCount ( ) , 4 ) ;
87- assert . equal ( table . getRow ( 3 ) . get ( 0 ) , 'David,\nSr. "the boss"' ) ;
87+ const value = table . getRow ( 3 ) . get ( 0 ) . replace ( / \r \n / g, '\n' ) ;
88+ assert . equal ( value , 'David,\nSr. "the boss"' ) ;
8889 } ) ;
8990} ) ;
You can’t perform that action at this time.
0 commit comments