{"ScriptPreparationCode":"//Add 100,000 elements\r\nvar frag = document.createDocumentFragment();\r\nfor (var i=0; i\u003C10; i\u002B\u002B){\r\n var outDiv = document.createElement(\u0027div\u0027);\r\n for (var j=0; j\u003C100; j\u002B\u002B){\r\n var midDiv = document.createElement(\u0027div\u0027);\r\n for (var k=0; k\u003C100; k\u002B\u002B){\r\n var inDiv = document.createElement(\u0027div\u0027);\r\n if(i==6 \u0026\u0026 j==60){\r\n if(k==60)\r\n inDiv.id=\u0022one\u0022;\r\n else if(k==61)\r\n inDiv.id=\u0022two\u0022;\r\n }\r\n midDiv.appendChild(inDiv)\r\n }\r\n outDiv.appendChild(midDiv)\r\n }\r\n frag.appendChild(outDiv);\r\n}\r\ndocument.body.appendChild(frag);","TestCases":[{"Name":"1 div with javascript","Code":"var $obj = $(document.getElementById(\u0027one\u0027)); if($obj.length!=1) throw Error(\u0022Fail\u0022)","IsDeferred":false},{"Name":"1 div with jquery selector","Code":"var $obj = $(\u0027#one\u0027); if($obj.length!=1) throw Error(\u0022Fail\u0022)","IsDeferred":false},{"Name":"2 divs with javascript. Add with jquery","Code":"var $obj = $(document.getElementById(\u0027one\u0027)).add(document.getElementById(\u0027two\u0027)); if($obj.length!=2) throw Error(\u0022Fail\u0022)","IsDeferred":false},{"Name":"2 divs with 2 jquery selectors. Add with jquery","Code":"var $obj = $(\u0027#one\u0027).add(\u0027#two\u0027); if($obj.length!=2) throw Error(\u0022Fail\u0022)","IsDeferred":false},{"Name":"2 divs with javascript. Add with array","Code":"var $obj = $([document.getElementById(\u0027one\u0027),document.getElementById(\u0027two\u0027)]); if($obj.length!=2) throw Error(\u0022Fail\u0022)","IsDeferred":false},{"Name":"2 divs with 2 jquery selectors. Add with array","Code":"var $obj = $([$(\u0027#one\u0027)[0],$(\u0027#two\u0027)[0]]); if($obj.length!=2) throw Error(\u0022Fail\u0022)","IsDeferred":false},{"Name":"2 divs with single jquery selector","Code":"var $obj = $(\u0027#one, #two\u0027); if($obj.length!=2) throw Error(\u0022Fail\u0022)","IsDeferred":false},{"Name":"1 div with jquery selector with context","Code":"var $obj = $(document.body).find(\u0027#one\u0027); if($obj.length!=1) throw Error(\u0022Fail\u0022)","IsDeferred":false}]}