Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing specs

  • Loading branch information...
commit b2dff1c8fdf5e6403b5b557a95e8850c4efa0c6d 1 parent f459f63
Aaron Newton authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 Specs/Source/UI.Widget.js
  2. +1 −1  Specs/Source/UI.Widgets.js
View
6 Specs/Source/UI.Widget.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"
});
View
2  Specs/Source/UI.Widgets.js
@@ -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(){
Please sign in to comment.
Something went wrong with that request. Please try again.