-
Notifications
You must be signed in to change notification settings - Fork 7
/
layer_test.go
31 lines (28 loc) · 1.27 KB
/
layer_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package aep
import (
"testing"
)
func TestLayerMetadata(t *testing.T) {
project, err := Open("data/Layer-01.aep")
if err != nil {
t.Fatal(err)
}
comp01 := project.RootFolder.FolderContents[0]
expect(t, comp01.CompositionLayers[0].CollapseTransformEnabled)
expect(t, comp01.CompositionLayers[1].EffectsEnabled)
expect(t, comp01.CompositionLayers[2].MotionBlurEnabled)
expect(t, comp01.CompositionLayers[4].ShyEnabled)
expect(t, comp01.CompositionLayers[5].AdjustmentLayerEnabled)
expect(t, comp01.CompositionLayers[6].ThreeDEnabled)
expect(t, comp01.CompositionLayers[7].SoloEnabled)
expect(t, comp01.CompositionLayers[8].GuideEnabled)
expect(t, comp01.CompositionLayers[9].FrameBlendMode, LayerFrameBlendModePixelMotion)
expect(t, comp01.CompositionLayers[10].FrameBlendMode, LayerFrameBlendModeFrameMix)
expect(t, comp01.CompositionLayers[11].Quality, LayerQualityWireframe)
expect(t, comp01.CompositionLayers[12].Quality, LayerQualityDraft)
expect(t, comp01.CompositionLayers[13].Quality, LayerQualityBest)
expect(t, comp01.CompositionLayers[14].SamplingMode, LayerSamplingModeBilinear)
expect(t, comp01.CompositionLayers[15].SamplingMode, LayerSamplingModeBicubic)
expect(t, comp01.CompositionLayers[16].VideoEnabled)
expect(t, comp01.CompositionLayers[16].AudioEnabled)
}