Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixing specs

  • Loading branch information...
commit b2dff1c8fdf5e6403b5b557a95e8850c4efa0c6d 1 parent f459f63
Aaron Newton authored

Showing 2 changed files with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +3 3 Specs/Source/UI.Widget.js
  2. +1 1  Specs/Source/UI.Widgets.js
6 Specs/Source/UI.Widget.js
@@ -93,9 +93,9 @@ test('should return the css "selector" string', function(){
93 93 equals(g.widget.toString(), 'button#buttonID.super.duper:disabled');
94 94 g.widget.enable();
95 95 g.widget.activate();
96   - equals(g.widget.toString(), 'button#buttonID.super.duper:focus:active');
  96 + equals(g.widget.toString(), 'button#buttonID.super.duper:focused:active');
97 97 g.widget.deactivate();
98   - equals(g.widget.toString(), 'button#buttonID.super.duper:focus');
  98 + equals(g.widget.toString(), 'button#buttonID.super.duper:focused');
99 99 g.widget.blur();
100 100 });
101 101
@@ -110,7 +110,7 @@ UI.Sheet.define("button#buttonID:disabled", {
110 110 color: "white"
111 111 });
112 112
113   -UI.Sheet.define("button#buttonID:focus", {
  113 +UI.Sheet.define("button#buttonID:focused", {
114 114 color: "pink"
115 115 });
116 116
2  Specs/Source/UI.Widgets.js
@@ -88,7 +88,7 @@ test('focusing the parent should not blur the children, if focused', function(){
88 88
89 89 equals(g.widget1.getState('focused'), true);
90 90 equals(g.parentWidget.getState('focused'), true);
91   - equals(g.widget2.getState('focused'), false);
  91 + equals(!!g.widget2.getState('focused'), false);
92 92 });
93 93
94 94 test('blurring the parent should blur every children', function(){

0 comments on commit b2dff1c

Please sign in to comment.
Something went wrong with that request. Please try again.