47 {
48 {
49 MockProperty<ScalarValue>
prop(R
"({})");
51 }
52 {
53 MockProperty<ScalarValue> prop(R"({ "a": 1, "k": [] })");
55 }
56 {
57
58 MockProperty<ScalarValue>
prop(R
"({
59 "a": 1,
60 "k": [
61 { "t": 1, "s": 1 },
62 { "t": 2, "s": 2 },
63 { "t": 3, "s": 4 }
64 ]
65 })");
76 }
77 {
78
79 MockProperty<ScalarValue>
prop(R
"({
80 "a": 1,
81 "k": [
82 { "t": 1, "s": 1, "h": true },
83 { "t": 2, "s": 2, "h": true },
84 { "t": 3, "s": 4, "h": true }
85 ]
86 })");
98 }
99 {
100
101 MockProperty<ScalarValue>
prop(R
"({
102 "a": 1,
103 "k": [
104 { "t": 1, "s": 1, "e": 2 },
105 { "t": 2, "s": 2, "e": 4 },
106 { "t": 3 }
107 ]
108 })");
119 }
120 {
121
122 MockProperty<ScalarValue>
prop(R
"({
123 "a": 1,
124 "k": [
125 { "t": 1, "s": 1, "e": 2, "h": true },
126 { "t": 2, "s": 2, "e": 4, "h": true },
127 { "t": 3 }
128 ]
129 })");
141 }
142 {
143
144 MockProperty<ScalarValue>
prop(R
"({
145 "a": 1,
146 "k": [
147 { "t": 1, "s": 42, "e": 42 },
148 { "t": 2, "s": 42, "e": 42 },
149 { "t": 3 }
150 ]
151 })");
155 }
156 {
157
158 MockProperty<Vec2Value>
prop(R
"({
159 "a": 1,
160 "k": [
161 { "t": 1, "s": [4,2], "e": [4,2] },
162 { "t": 2, "s": [4,2], "e": [4,2] },
163 { "t": 3 }
164 ]
165 })");
170 }
171 {
172
173
174 MockProperty<Vec2Value>
prop(R
"({
175 "a": 1,
176 "k": [
177 { "t": 0, "s": [100,100],
178 "o":{"x":[0.5], "y":[-0.5]}, "i":{"x":[0.5], "y":[1.5]},
179 "to": [10,15], "ti": [-10,-5]
180 },
181 { "t": 1, "s": [200,200]
182 }
183 ]
184 })");
187
188
191
192
195
196
199 }
200}
static bool SkScalarNearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance=SK_ScalarNearlyZero)
#define REPORTER_ASSERT(r, cond,...)
static SkScalar prop(SkScalar radius, SkScalar newSize, SkScalar oldSize)