Skip to content

Commit

Permalink
fixing specs
Browse files Browse the repository at this point in the history
  • Loading branch information
anutron committed May 10, 2010
1 parent f459f63 commit b2dff1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Specs/Source/UI.Widget.js
Expand Up @@ -93,9 +93,9 @@ test('should return the css "selector" string', function(){
equals(g.widget.toString(), 'button#buttonID.super.duper:disabled');
g.widget.enable();
g.widget.activate();
equals(g.widget.toString(), 'button#buttonID.super.duper:focus:active');
equals(g.widget.toString(), 'button#buttonID.super.duper:focused:active');
g.widget.deactivate();
equals(g.widget.toString(), 'button#buttonID.super.duper:focus');
equals(g.widget.toString(), 'button#buttonID.super.duper:focused');
g.widget.blur();
});

Expand All @@ -110,7 +110,7 @@ UI.Sheet.define("button#buttonID:disabled", {
color: "white"
});

UI.Sheet.define("button#buttonID:focus", {
UI.Sheet.define("button#buttonID:focused", {
color: "pink"
});

Expand Down
2 changes: 1 addition & 1 deletion Specs/Source/UI.Widgets.js
Expand Up @@ -88,7 +88,7 @@ test('focusing the parent should not blur the children, if focused', function(){

equals(g.widget1.getState('focused'), true);
equals(g.parentWidget.getState('focused'), true);
equals(g.widget2.getState('focused'), false);
equals(!!g.widget2.getState('focused'), false);
});

test('blurring the parent should blur every children', function(){
Expand Down

0 comments on commit b2dff1c

Please sign in to comment.