{"ScriptPreparationCode":"var x = Math.random() * 1000;\r\nvar clientX = Math.random() * 1000;\r\nvar px = Math.random() * 1000;\r\nvar maxWidth = Math.random() * 1000;","TestCases":[{"Name":"Math.max/min","Code":"Math.min(Math.max(x \u002B clientX - px, 0), maxWidth) - x","IsDeferred":false},{"Name":"if","Code":"if(x \u002B clientX - px \u003C 0) return 0;\r\nif(x \u002B clientX - px \u003E 750) return maxWidth;\r\nreturn x \u002B clientX - px;","IsDeferred":false},{"Name":"ternary","Code":"return x \u002B clientX - px \u003C 0\r\n ? 0\r\n : (x \u002B clientX - px \u003E maxWidth\r\n ? maxWidth\r\n : x \u002B clientX - px) - x;","IsDeferred":false}]}