3 * Copyright(c) 2006-2010 Ext JS, Inc.
5 * http://www.extjs.com/license
8 * Creates a window with 40 tabs, profiles initial rendering speed and resize rendering speed
11 function addWindowPerformanceTest() {
12 Ext.test.profiler.add({
13 name : 'AnchorLayout',
14 skipVersions: ['2.2.0', '3.1.0'],
18 beforeAll : function() {
19 this.previousBuffer = Ext.Container.bufferResize;
20 Ext.Container.bufferResize = false;
23 afterAll : function() {
24 Ext.Container.bufferResize = this.previousBuffer;
27 execute : function() {
30 this.win = new Ext.Viewport({
127 afterEach: function() {
132 Ext.test.profiler.add({
133 name : 'ColumnLayout',
134 skipVersions: ['2.2.0'],
138 beforeAll : function() {
139 this.previousBuffer = Ext.Container.bufferResize;
140 Ext.Container.bufferResize = false;
143 afterAll : function() {
144 Ext.Container.bufferResize = this.previousBuffer;
147 execute : function() {
149 this.win = new Ext.Viewport({
249 afterEach: function() {
254 Ext.test.profiler.add({
256 skipVersions: ['2.2.0'],
260 beforeAll : function() {
261 this.previousBuffer = Ext.Container.bufferResize;
262 Ext.Container.bufferResize = false;
265 afterAll : function() {
266 Ext.Container.bufferResize = this.previousBuffer;
269 execute : function() {
271 this.win = new Ext.Viewport({
483 afterEach: function() {
490 if (typeof Ext != 'undefined' && typeof Ext.test != 'undefined') {
491 addWindowPerformanceTest();
493 Ext.onReady(addWindowPerformanceTest);