siesta-lite
Version:
Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers
27 lines (19 loc) • 588 B
JavaScript
Class('CustomRecorder', {
isa : Siesta.Recorder.Recorder,
has : {
},
methods: {
getPossibleTargets : function(event) {
var domNode = event.target;
var targets = this.SUPERARG(arguments);
if (domNode.getAttribute('someAttr')) {
targets.unshift({
// "xy", "css", "cq" or "csq"
type : "css",
target : '[someAttr="' + domNode.getAttribute('someAttr') + '"]'
})
}
return targets;
}
}
});