Skip to content

Commit

Permalink
test(serialization): add test for vtkImageData serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
bourdaisj authored and finetjul committed Oct 3, 2023
1 parent 4e73335 commit 96fcd1f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Sources/Testing/testSerialization.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import vtk from 'vtk.js/Sources/vtk';
import macro from 'vtk.js/Sources/macros';

import vtkDataArray from 'vtk.js/Sources/Common/Core/DataArray';
import vtkPoints from 'vtk.js/Sources/Common/Core/Points';
import vtkImageData from 'vtk.js/Sources/Common/DataModel/ImageData';
import vtkLookupTable from 'vtk.js/Sources/Common/Core/LookupTable';
import vtkPoints from 'vtk.js/Sources/Common/Core/Points';
import vtkPolyData from 'vtk.js/Sources/Common/DataModel/PolyData';
import vtkScalarsToColors from 'vtk.js/Sources/Common/Core/ScalarsToColors';

import vtkPolyData from 'vtk.js/Sources/Common/DataModel/PolyData';
import Common from 'vtk.js/Sources/Common';
import Filters from 'vtk.js/Sources/Filters';
import Imaging from 'vtk.js/Sources/Imaging';
Expand All @@ -21,10 +22,11 @@ const { vtkDebugMacro } = macro;

const classToTest = [
'vtkDataArray',
'vtkPoints',
'vtkImageData',
'vtkLookupTable',
'vtkScalarsToColors',
'vtkPoints',
'vtkPolyData',
'vtkScalarsToColors',
];

const SERIALIZABLE_CLASSES = {
Expand Down Expand Up @@ -55,6 +57,7 @@ const SERIALIZABLE_CLASSES = {
},
},
},
vtkImageData,
};

function ignoreMTime(json) {
Expand Down

0 comments on commit 96fcd1f

Please sign in to comment.