Permalink
Browse files

fixing specs

  • Loading branch information...
anutron committed May 10, 2010
1 parent f459f63 commit b2dff1c8fdf5e6403b5b557a95e8850c4efa0c6d
Showing with 4 additions and 4 deletions.
  1. +3 −3 Specs/Source/UI.Widget.js
  2. +1 −1 Specs/Source/UI.Widgets.js
@@ -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();
});
@@ -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"
});
@@ -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(){

0 comments on commit b2dff1c

Please sign in to comment.