|
@@ -168,6 +168,10 @@ SpecBegin(MASViewConstraint) { |
|
@@ -168,6 +168,10 @@ SpecBegin(MASViewConstraint) { |
168
|
left.equalTo(value);
|
168
|
left.equalTo(value);
|
169
|
expect(left.layoutConstant).to.equal(20);
|
169
|
expect(left.layoutConstant).to.equal(20);
|
170
|
|
170
|
|
|
|
171
|
+ MASViewConstraint *leading = [[MASViewConstraint alloc] initWithFirstViewAttribute:otherView.mas_leading];
|
|
|
172
|
+ leading.equalTo(value);
|
|
|
173
|
+ expect(leading.layoutConstant).to.equal(20);
|
|
|
174
|
+
|
171
|
MASViewConstraint *bottom = [[MASViewConstraint alloc] initWithFirstViewAttribute:otherView.mas_bottom];
|
175
|
MASViewConstraint *bottom = [[MASViewConstraint alloc] initWithFirstViewAttribute:otherView.mas_bottom];
|
172
|
bottom.equalTo(value);
|
176
|
bottom.equalTo(value);
|
173
|
expect(bottom.layoutConstant).to.equal(-30);
|
177
|
expect(bottom.layoutConstant).to.equal(-30);
|
|
@@ -175,6 +179,10 @@ SpecBegin(MASViewConstraint) { |
|
@@ -175,6 +179,10 @@ SpecBegin(MASViewConstraint) { |
175
|
MASViewConstraint *right = [[MASViewConstraint alloc] initWithFirstViewAttribute:otherView.mas_right];
|
179
|
MASViewConstraint *right = [[MASViewConstraint alloc] initWithFirstViewAttribute:otherView.mas_right];
|
176
|
right.equalTo(value);
|
180
|
right.equalTo(value);
|
177
|
expect(right.layoutConstant).to.equal(-40);
|
181
|
expect(right.layoutConstant).to.equal(-40);
|
|
|
182
|
+
|
|
|
183
|
+ MASViewConstraint *trailing = [[MASViewConstraint alloc] initWithFirstViewAttribute:otherView.mas_trailing];
|
|
|
184
|
+ trailing.equalTo(value);
|
|
|
185
|
+ expect(trailing.layoutConstant).to.equal(-40);
|
178
|
|
186
|
|
179
|
MASViewConstraint *centerX = [[MASViewConstraint alloc] initWithFirstViewAttribute:otherView.mas_centerX];
|
187
|
MASViewConstraint *centerX = [[MASViewConstraint alloc] initWithFirstViewAttribute:otherView.mas_centerX];
|
180
|
centerX.equalTo(value);
|
188
|
centerX.equalTo(value);
|