UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

31 lines (23 loc) 624 B
/* Siesta 5.6.1 Copyright(c) 2009-2022 Bryntum AB https://bryntum.com/contact https://bryntum.com/products/siesta/license */ /** @class Siesta.Test.Browser.Role.CanRebindJQueryContext */ Role('Siesta.Test.Browser.Role.CanRebindJQueryContext', { methods : { /** * This method rebinds jQuery context to a test page. It can be used as "normal" jQuery: * this.$('.cssSelector').setWidth(100) * */ $ : function () { var local$ = $.rebindWindowContext(this.global); return local$.apply(this.global, arguments); } } });