diff --git a/frontend_tests/zjsunit/zjquery.js b/frontend_tests/zjsunit/zjquery.js index 02e431cbbc..f208d64a6c 100644 --- a/frontend_tests/zjsunit/zjquery.js +++ b/frontend_tests/zjsunit/zjquery.js @@ -14,6 +14,7 @@ exports.make_zjquery = function () { var focused = false; var children = new Dict(); var my_parent; + var properties = new Dict(); var classes = new Dict(); var on_functions = new Dict(); @@ -128,6 +129,12 @@ exports.make_zjquery = function () { assert.equal(idx, 0); return selector; }, + prop: function (name, val) { + if (val === undefined) { + return properties.get(name); + } + properties.set(name, val); + }, }; if (selector[0] === '<') {