Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test for clippingFrame fixes

  • Loading branch information...
commit 00722557f9866c577084ca99c7c774d1c141ce41 1 parent 0ff4db6
@wagenet wagenet authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 frameworks/core_foundation/tests/views/view/clippingFrame.js
View
11 frameworks/core_foundation/tests/views/view/clippingFrame.js
@@ -115,3 +115,14 @@ test("notifies receiver and each child if parent clipping frame changes", functi
// number.
equals(callCount, 2, 'should invoke observer on child and nested child');
});
+
+test("returns 0, 0, W, H if parentView has no clippingFrame", function(){
+ a.clippingFrame = null;
+
+ var targetFrame = aa.get('clippingFrame');
+
+ equals(targetFrame.x, 0, "x should be 0");
+ equals(targetFrame.y, 0, "y should be 0");
+ equals(targetFrame.width, 40, "width should be 40");
+ equals(targetFrame.height, 40, "height should be 40");
+});
Please sign in to comment.
Something went wrong with that request. Please try again.