(params)
| 4792 | } |
| 4793 | |
| 4794 | function setUrl(params) { |
| 4795 | var key, |
| 4796 | arrValue, |
| 4797 | i, |
| 4798 | querystring = "?", |
| 4799 | location = window$1.location; |
| 4800 | |
| 4801 | params = QUnit.extend(QUnit.extend({}, QUnit.urlParams), params); |
| 4802 | |
| 4803 | for (key in params) { |
| 4804 | |
| 4805 | // Skip inherited or undefined properties |
| 4806 | if (hasOwn.call(params, key) && params[key] !== undefined) { |
| 4807 | |
| 4808 | // Output a parameter for each value of this key |
| 4809 | // (but usually just one) |
| 4810 | arrValue = [].concat(params[key]); |
| 4811 | for (i = 0; i < arrValue.length; i++) { |
| 4812 | querystring += encodeURIComponent(key); |
| 4813 | if (arrValue[i] !== true) { |
| 4814 | querystring += "=" + encodeURIComponent(arrValue[i]); |
| 4815 | } |
| 4816 | querystring += "&"; |
| 4817 | } |
| 4818 | } |
| 4819 | } |
| 4820 | return location.protocol + "//" + location.host + location.pathname + querystring.slice(0, -1); |
| 4821 | } |
| 4822 | |
| 4823 | function applyUrlParams() { |
| 4824 | var i, |
no outgoing calls
no test coverage detected