Revision: 1047
Author: allain.lalonde
Date: Thu Aug 26 08:58:51 2010
Log: Moving test for invalidPaint default to PRoot since it now tracks it
http://code.google.com/p/piccolo2d/source/detail?r=1047

Modified:
 /piccolo2d.js/trunk/test.html

=======================================
--- /piccolo2d.js/trunk/test.html       Mon Jan  4 10:15:57 2010
+++ /piccolo2d.js/trunk/test.html       Thu Aug 26 08:58:51 2010
@@ -270,12 +270,7 @@
           var n = new PNode();
ok(n.transform.equals(new PTransform()), "transform is identity");
         });
-
-        test("paint is invalid by default", function() {
-          var n = new PNode();
-          ok(n.invalidPaint, "invalid");
-        });
-
+
         test("fills rect when bounds and fillStyle are good", function() {
           var n = new PNode({
             bounds: new PBounds(0, 0, 20, 20),
@@ -472,6 +467,12 @@

           same(root.getRoot(), root, "returned itself");
         });
+
+        test("invalid paint by default", function() {
+          var root = new PRoot();
+
+          ok(root.invalidPaint, "invalid paint");
+        });
       }

       function testPText() {

--
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en

Reply via email to