{"ScriptPreparationCode":"var totalDivs = 10, totalOnce = 3;\r\nvar wrapper = document.querySelector(\u0027#wrapper\u0027);\r\nvar $wrapper = jQuery(wrapper);\r\n\r\n// uglysauce to make it work on IE11\r\nvar params = parent.window.location.search.replace(\u0027?\u0027, \u0027\u0027).split(\u0027\u0026\u0027);\r\nparams.forEach(function (par) { \r\n var d = par.split(\u0027=\u0027);\r\n if (d[0] === \u0027div\u0027) { totalDivs = parseInt(d[1]); }\r\n if (d[0] === \u0027once\u0027) { totalOnce = parseInt(d[1]); }\r\n})\r\nwrapper.innerHTML = \u0027\u003Cdiv class=\u0022test\u0022\u003E\u003C/div\u003E\u0027.repeat(totalDivs); \r\n\r\n// Add some info in the test name to be able to compare things\r\nvar extra = \u0027 (div=\u0027 \u002B totalDivs \u002B \u0027, once=\u0027 \u002B totalOnce \u002B \u0027)\u0027;\r\nvar newjQo = \u0027jQuery.once \u0027 \u002B extra;\r\nvar newO = \u0027once \u0027 \u002B extra;\r\n\r\nparent.document.querySelector(\u0027[data-row-for^=\u0022jQuery.once\u0022]\u0027).setAttribute(\u0027data-row-for\u0027, newjQo);\r\nparent.document.querySelector(\u0027[data-row-for^=\u0022once\u0022]\u0027).setAttribute(\u0027data-row-for\u0027, newO);\r\n// Change the test names in the string that will be eval\u0027ed right after this one.\r\ncontent = content.replace(\u0022\u0027jQuery.once\u0027\u0022, \u0022\u0027\u0022 \u002B newjQo \u002B \u0022\u0027\u0022).replace(\u0022\u0027once\u0027\u0022, \u0022\u0027\u0022 \u002B newO \u002B \u0022\u0027\u0022);\r\n","TestCases":[{"Name":"jQuery.once","Code":"for (var i = 0; i \u003C totalOnce; i\u002B\u002B) {\r\n $wrapper.find(\u0027.test\u0027).once(\u0027test\u0027 \u002B i);\r\n}","IsDeferred":false},{"Name":"once","Code":"for (var i = 0; i \u003C totalOnce; i\u002B\u002B) {\r\n once(\u0027test\u0027 \u002B i, \u0027.test\u0027, wrapper);\r\n}","IsDeferred":false}]}