Getters for call expression properties

This commit is contained in:
Tim Schaub
2013-06-11 22:52:20 -06:00
parent 6458f98996
commit be636d7f46
2 changed files with 38 additions and 4 deletions

View File

@@ -67,6 +67,22 @@ describe('ol.expression.Call', function() {
});
var callee = new ol.expression.Identifier('sqrt');
var args = [new ol.expression.Literal(42)];
var expr = new ol.expression.Call(callee, args);
describe('#getArgs()', function() {
it('gets the callee expression', function() {
expect(expr.getArgs()).to.be(args);
});
});
describe('#getCallee()', function() {
it('gets the callee expression', function() {
expect(expr.getCallee()).to.be(callee);
});
});
});