Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

494 lines
14 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. /**
  8. * Creates a window with 40 tabs, profiles initial rendering speed and resize rendering speed
  9. */
  10. function addWindowPerformanceTest() {
  11. Ext.test.profiler.add({
  12. name : 'AnchorLayout',
  13. skipVersions: ['2.2.0', '3.1.0'],
  14. iterations: 1000,
  15. newWindow : true,
  16. beforeAll : function() {
  17. this.previousBuffer = Ext.Container.bufferResize;
  18. Ext.Container.bufferResize = false;
  19. },
  20. afterAll : function() {
  21. Ext.Container.bufferResize = this.previousBuffer;
  22. },
  23. execute : function() {
  24. this.win = new Ext.Viewport({
  25. layout: 'fit',
  26. items: [{
  27. xtype: 'container',
  28. layout: 'form',
  29. items: [{
  30. xtype: 'textfield',
  31. width: 100
  32. }, {
  33. xtype: 'textfield',
  34. anchor: '100%'
  35. },
  36. {
  37. xtype: 'textfield',
  38. anchor: '100%'
  39. },
  40. {
  41. xtype: 'textfield',
  42. anchor: '100%'
  43. },
  44. {
  45. xtype: 'textfield',
  46. anchor: '100%'
  47. },
  48. {
  49. xtype: 'textfield',
  50. anchor: '100%'
  51. },
  52. {
  53. xtype: 'textfield',
  54. anchor: '100%'
  55. },
  56. {
  57. xtype: 'textfield',
  58. anchor: '100%'
  59. },
  60. {
  61. xtype: 'textfield',
  62. anchor: '100%'
  63. },
  64. {
  65. xtype: 'textfield',
  66. anchor: '100%'
  67. },
  68. {
  69. xtype: 'textfield',
  70. anchor: '100%'
  71. },
  72. {
  73. xtype: 'textfield',
  74. anchor: '100%'
  75. },
  76. {
  77. xtype: 'textfield',
  78. anchor: '100%'
  79. },
  80. {
  81. xtype: 'textfield',
  82. anchor: '100%'
  83. },
  84. {
  85. xtype: 'textfield',
  86. anchor: '100%'
  87. },
  88. {
  89. xtype: 'textfield',
  90. anchor: '100%'
  91. },
  92. {
  93. xtype: 'textfield',
  94. anchor: '100%'
  95. },
  96. {
  97. xtype: 'textfield',
  98. anchor: '100%'
  99. },
  100. {
  101. xtype: 'textfield',
  102. anchor: '100%'
  103. },
  104. {
  105. xtype: 'textfield',
  106. anchor: '100%'
  107. },
  108. {
  109. xtype: 'textfield',
  110. anchor: '100%'
  111. },
  112. {
  113. xtype: 'textfield',
  114. width: 100
  115. }]
  116. }]
  117. });
  118. },
  119. afterEach: function() {
  120. this.win.destroy();
  121. }
  122. });
  123. /*
  124. Ext.test.profiler.add({
  125. name : 'ColumnLayout',
  126. skipVersions: ['2.2.0'],
  127. iterations: 50,
  128. newWindow : true,
  129. beforeAll : function() {
  130. this.previousBuffer = Ext.Container.bufferResize;
  131. Ext.Container.bufferResize = false;
  132. },
  133. afterAll : function() {
  134. Ext.Container.bufferResize = this.previousBuffer;
  135. },
  136. execute : function() {
  137. this.win = new Ext.Viewport({
  138. layout: 'fit',
  139. items: [{
  140. xtype: 'container',
  141. layout: 'column',
  142. defaults: {
  143. height: 30
  144. },
  145. items: [{
  146. xtype: 'container',
  147. width: 100
  148. }, {
  149. xtype: 'container',
  150. columnWidth: .05
  151. },
  152. {
  153. xtype: 'container',
  154. columnWidth: .05
  155. },
  156. {
  157. xtype: 'container',
  158. columnWidth: .05
  159. },
  160. {
  161. xtype: 'container',
  162. columnWidth: .05
  163. },
  164. {
  165. xtype: 'container',
  166. columnWidth: .05
  167. },
  168. {
  169. xtype: 'container',
  170. columnWidth: .05
  171. },
  172. {
  173. xtype: 'container',
  174. columnWidth: .05
  175. },
  176. {
  177. xtype: 'container',
  178. columnWidth: .05
  179. },
  180. {
  181. xtype: 'container',
  182. columnWidth: .05
  183. },
  184. {
  185. xtype: 'container',
  186. columnWidth: .05
  187. },
  188. {
  189. xtype: 'container',
  190. columnWidth: .05
  191. },
  192. {
  193. xtype: 'container',
  194. columnWidth: .05
  195. },
  196. {
  197. xtype: 'container',
  198. columnWidth: .05
  199. },
  200. {
  201. xtype: 'container',
  202. columnWidth: .05
  203. },
  204. {
  205. xtype: 'container',
  206. columnWidth: .05
  207. },
  208. {
  209. xtype: 'container',
  210. columnWidth: .05
  211. },
  212. {
  213. xtype: 'container',
  214. columnWidth: .05
  215. },
  216. {
  217. xtype: 'container',
  218. columnWidth: .05
  219. },
  220. {
  221. xtype: 'container',
  222. columnWidth: .05
  223. },
  224. {
  225. xtype: 'container',
  226. columnWidth: .05
  227. },
  228. {
  229. xtype: 'container',
  230. width: 100
  231. }]
  232. }]
  233. });
  234. },
  235. afterEach: function() {
  236. this.win.destroy();
  237. }
  238. });
  239. Ext.test.profiler.add({
  240. name : 'HBoxLayout',
  241. skipVersions: ['2.2.0'],
  242. iterations: 50,
  243. newWindow : true,
  244. beforeAll : function() {
  245. this.previousBuffer = Ext.Container.bufferResize;
  246. Ext.Container.bufferResize = false;
  247. },
  248. afterAll : function() {
  249. Ext.Container.bufferResize = this.previousBuffer;
  250. },
  251. execute : function() {
  252. this.win = new Ext.Viewport({
  253. layout: 'fit',
  254. items: [{
  255. xtype: 'container',
  256. layout: 'hbox',
  257. layoutConfig: {
  258. align: 'stretch'
  259. },
  260. items: [{
  261. xtype: 'container',
  262. width: 100
  263. }, {
  264. xtype: 'container',
  265. flex: 1
  266. },
  267. {
  268. xtype: 'container',
  269. flex: 2
  270. },
  271. {
  272. xtype: 'container',
  273. flex: 3
  274. },
  275. {
  276. xtype: 'container',
  277. flex: 1
  278. },
  279. {
  280. xtype: 'container',
  281. flex: 2
  282. },
  283. {
  284. xtype: 'container',
  285. flex: 3
  286. },
  287. {
  288. xtype: 'container',
  289. flex: 1
  290. },
  291. {
  292. xtype: 'container',
  293. flex: 2
  294. },
  295. {
  296. xtype: 'container',
  297. flex: 3
  298. },
  299. {
  300. xtype: 'container',
  301. flex: 1
  302. },
  303. {
  304. xtype: 'container',
  305. flex: 2
  306. },
  307. {
  308. xtype: 'container',
  309. flex: 3
  310. },
  311. {
  312. xtype: 'container',
  313. flex: 1
  314. },
  315. {
  316. xtype: 'container',
  317. flex: 2
  318. },
  319. {
  320. xtype: 'container',
  321. flex: 3
  322. },
  323. {
  324. xtype: 'container',
  325. flex: 1
  326. },
  327. {
  328. xtype: 'container',
  329. flex: 2
  330. },
  331. {
  332. xtype: 'container',
  333. flex: 3
  334. },
  335. {
  336. xtype: 'container',
  337. flex: 1
  338. },
  339. {
  340. xtype: 'container',
  341. flex: 2
  342. },
  343. {
  344. xtype: 'container',
  345. flex: 3
  346. },
  347. {
  348. xtype: 'container',
  349. flex: 1
  350. },
  351. {
  352. xtype: 'container',
  353. flex: 2
  354. },
  355. {
  356. xtype: 'container',
  357. flex: 3
  358. },
  359. {
  360. xtype: 'container',
  361. flex: 1
  362. },
  363. {
  364. xtype: 'container',
  365. flex: 2
  366. },
  367. {
  368. xtype: 'container',
  369. flex: 3
  370. },
  371. {
  372. xtype: 'container',
  373. flex: 1
  374. },
  375. {
  376. xtype: 'container',
  377. flex: 2
  378. },
  379. {
  380. xtype: 'container',
  381. flex: 3
  382. },
  383. {
  384. xtype: 'container',
  385. flex: 1
  386. },
  387. {
  388. xtype: 'container',
  389. flex: 2
  390. },
  391. {
  392. xtype: 'container',
  393. flex: 3
  394. },
  395. {
  396. xtype: 'container',
  397. flex: 1
  398. },
  399. {
  400. xtype: 'container',
  401. flex: 2
  402. },
  403. {
  404. xtype: 'container',
  405. flex: 3
  406. },
  407. {
  408. xtype: 'container',
  409. flex: 1
  410. },
  411. {
  412. xtype: 'container',
  413. flex: 2
  414. },
  415. {
  416. xtype: 'container',
  417. flex: 3
  418. },
  419. {
  420. xtype: 'container',
  421. flex: 1
  422. },
  423. {
  424. xtype: 'container',
  425. flex: 2
  426. },
  427. {
  428. xtype: 'container',
  429. flex: 3
  430. },
  431. {
  432. xtype: 'container',
  433. flex: 1
  434. },
  435. {
  436. xtype: 'container',
  437. flex: 2
  438. },
  439. {
  440. xtype: 'container',
  441. flex: 3
  442. },
  443. {
  444. xtype: 'container',
  445. flex: 1
  446. },
  447. {
  448. xtype: 'container',
  449. flex: 2
  450. },
  451. {
  452. xtype: 'container',
  453. flex: 3
  454. },
  455. {
  456. xtype: 'container',
  457. width: 100
  458. }]
  459. }]
  460. });
  461. } ,
  462. afterEach: function() {
  463. this.win.destroy();
  464. }
  465. });
  466. */
  467. };
  468. if (typeof Ext != 'undefined' && typeof Ext.test != 'undefined') {
  469. addWindowPerformanceTest();
  470. } else {
  471. Ext.onReady(addWindowPerformanceTest);
  472. }