dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

Fix:create custom assertions via callback #141

Closed gskachkov closed 9 years ago

gskachkov commented 9 years ago

Implemention of the following feature https://github.com/dalekjs/dalek/issues/123 - Custom assertions via callback

Examples of using

test
    .open('http://dalekjs.com/index.html')
    .assert.evaluate(function () {
      return document.getElementsByClassName('grid').length;
    }).is(2, 'Count of grid on page is equal 2');
asciidisco commented 9 years ago

Finally found some time to get this in, sorry for the delay & thanks for the contribution :)