Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Specification using aspects from Func Unit and Pavlov bdd Qunit extension
QUnit.specify("Pavlov Example", function(){
var foo = 'bar';
describe("when the page with meerkat is open", function(){
before(function(){
foo = foo + "bar";
S.open("meerkat.html",function () {
// act
S('.open-meerkat').click();
S.wait(6000);
});
});
it("should open meerkat", function(){
ok(S('.meerkat').css('display') != 'none',S('.meerkat').css('display'));
});
});
describe("when the page with meerkat is open and you click close", function(){
before(function(){
foo = foo + "bar";
S.open("meerkat.html",function () {
// act
S('.close-meerkat').click();
S.wait(6000);
});
});
it("should close meerkat", function(){
ok(S('.meerkat').css('display') == 'none',S('.meerkat').css('display'));
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.