From 6883e8c7a0c121319ced63596718d34e3ab650a8 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 16 Sep 2011 00:05:13 +0200 Subject: feat(scenarioRunner): adding support for element().prop() since jQuery 1.6.4 attr() focuses only on work with element attributes and doesn't deal well with element properties, so adding prop() support is required for getting many e2e tests to pass after upgrading the runner to jQuery 1.6.4. --- src/scenario/dsl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scenario') diff --git a/src/scenario/dsl.js b/src/scenario/dsl.js index c51dbb74..8bc4030e 100644 --- a/src/scenario/dsl.js +++ b/src/scenario/dsl.js @@ -302,7 +302,7 @@ angular.scenario.dsl('select', function() { * element(selector, label).{method}(key, value) sets the value (as defined by jQuery, ex. attr) */ angular.scenario.dsl('element', function() { - var KEY_VALUE_METHODS = ['attr', 'css']; + var KEY_VALUE_METHODS = ['attr', 'css', 'prop']; var VALUE_METHODS = [ 'val', 'text', 'html', 'height', 'innerHeight', 'outerHeight', 'width', 'innerWidth', 'outerWidth', 'position', 'scrollLeft', 'scrollTop', 'offset' -- cgit v1.2.3