Permalink
Browse files

Get SCUI foundation unit tests to pass

  • Loading branch information...
1 parent aaa85ee commit f0fb3c3dcc89b355684c004b3b84271e7e220809 @bblatnick bblatnick committed with etgryphon Apr 4, 2011
@@ -39,9 +39,17 @@ test("setting a content object without a status shouldn't call statusDidChange",
test("setting content with status should change status", function() {
content = SC.Object.create({status: 'what now'});
+
+ SC.RunLoop.begin();
controller.set('content', content);
+ SC.RunLoop.end();
+
equals(statusChangeCount, 1, 'statusChanged should fire count is 1');
+
+ SC.RunLoop.begin();
content.set('status', "hello nurse");
+ SC.RunLoop.end();
+
equals(statusChangeCount, 2, 'statusChanged should fire count is 2');
});
@@ -42,6 +42,7 @@ module("SCUI.ModalPane", pane.standardSetup());
test("Check basic visibility", function() {
picker.append();
+ picker.remove();
});

0 comments on commit f0fb3c3

Please sign in to comment.