Skip to content

Commit

Permalink
Added test for inheritance.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcporter authored and Charles Jolley committed May 18, 2010
1 parent 8f2f031 commit ca84e19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frameworks/foundation/tests/views/view/prepareContext.js
Expand Up @@ -172,5 +172,9 @@ test("Properly sets cursor class", function() {
view.prepareContext(context, YES);
ok(context.hasClass(cursor.get('className')), "Should have cursor object's class");
//TODO: Test for setting string.
//TODO: Test for string inheritance.
var view2 = SC.View.create();
view.appendChild(view2);
var context = view2.renderContext();
view2.prepareContext(context, YES);
ok(context.hasClass(cursor.get('className')), "Cursorless child view should inherit parent view's cursor.");
});

0 comments on commit ca84e19

Please sign in to comment.