]> git.proxmox.com Git - extjs.git/blame - extjs/classic/classic/test/start-tests.js
add extjs 6.0.1 sources
[extjs.git] / extjs / classic / classic / test / start-tests.js
CommitLineData
6527f429
DM
1(function() {\r
2 var env = jasmine.getEnv();\r
3\r
4 if (!/local\-reporter=false/i.test(top.location.search)) {\r
5 env.addReporter(parent.Test.SandBox.reporter);\r
6 }\r
7\r
8 if (/disableTryCatch=true/i.test(top.location.search)) {\r
9 this.jasmine.CATCH_EXCEPTIONS = false;\r
10 }\r
11 \r
12 if (/disableLeakChecks=true/i.test(top.location.search)) {\r
13 this.jasmine.DISABLE_LEAK_CHECKS = true;\r
14 }\r
15\r
16 if (window.Cmd) {\r
17 top.Cmd = Cmd;\r
18 env.addReporter(new Cmd.jasmine.Reporter());\r
19\r
20 // Firefox driver keeps the focus in the address bar after driver.get(url), which \r
21 // causes many specs to fail, so we click on a focusable element to workaround\r
22 // this behavior\r
23 // https://code.google.com/p/selenium/issues/detail?id=8100\r
24 Cmd.native.click(top.document.getElementById('collapseAll'));\r
25\r
26 Cmd.native.switchTo({frame: 'sandbox'}, function() {\r
27 env.execute();\r
28 });\r
29 } else {\r
30 env.execute();\r
31 }\r
32})();\r