Created
May 24, 2012 22:39
-
-
Save lsmith/2784650 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var suite = new Y.Test.Suite("yo yo ma"); | |
suite.add(new Y.Test.Case({ | |
"foo should bar": function () { | |
var test = this, | |
node = Y.one('#foo'); | |
node.on('focus', function () { | |
test.resume(function () { | |
// Assertions go here | |
}); | |
}); | |
// normalize browsers with sync and async focus behavior | |
Y.later(<I always forget the sig> function () { | |
node.focus(); | |
}); | |
test.wait(); | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment