Browse Source

Update tests

Noah 8 years ago
parent
commit
98917d8419
1 changed files with 24 additions and 3 deletions
  1. 24 3
      test/frame-test.js

+ 24 - 3
test/frame-test.js View File

19
     foregroundColor: "#fff",
19
     foregroundColor: "#fff",
20
     waveTop: 340,
20
     waveTop: 340,
21
     waveBottom: 380,
21
     waveBottom: 380,
22
-    waveform: [[0, 1, 0], [1, 0.1, 1]]
22
+    waveform: [
23
+      [
24
+        [0, 0], [-1, 1], [0, 0]
25
+      ],
26
+      [
27
+        [-1, 1], [-0.1, 0.1], [-1, 1]
28
+      ]
29
+    ]
23
   };
30
   };
24
 
31
 
25
   initializeCanvas(options, function(err, renderer){
32
   initializeCanvas(options, function(err, renderer){
48
     height: 720,
55
     height: 720,
49
     waveTop: 340,
56
     waveTop: 340,
50
     waveBottom: 380,
57
     waveBottom: 380,
51
-    waveform: [[0, 1, 0], [1, 0.1, 1]]
58
+    waveform: [
59
+      [
60
+        [0, 0], [-1, 1], [0, 0]
61
+      ],
62
+      [
63
+        [-1, 1], [-0.1, 0.1], [-1, 1]
64
+      ]
65
+    ]
52
   };
66
   };
53
 
67
 
54
   initializeCanvas(options, function(err, renderer){
68
   initializeCanvas(options, function(err, renderer){
79
     foregroundColor: "#fff",
93
     foregroundColor: "#fff",
80
     waveTop: 340,
94
     waveTop: 340,
81
     waveBottom: 380,
95
     waveBottom: 380,
82
-    waveform: [[0, 1, 0], [1, 0.1, 1]]
96
+    waveform: [
97
+      [
98
+        [0, 0], [-1, 1], [0, 0]
99
+      ],
100
+      [
101
+        [-1, 1], [-0.1, 0.1], [-1, 1]
102
+      ]
103
+    ]
83
   };
104
   };
84
 
105
 
85
   initializeCanvas(options, function(err, renderer){
106
   initializeCanvas(options, function(err, renderer){