-
- describe("Ext.getCmp", function() {
- it("should return a component", function() {
- var cmp = new Ext.Component({id: 'foobar'});
- expect(Ext.getCmp('foobar')).toBe(cmp);
- cmp.destroy();
+ if (Ext.Component) {
+ describe("Ext.getCmp", function() {
+ it("should return a component", function() {
+ var cmp = new Ext.Component({id: 'foobar'});
+ expect(Ext.getCmp('foobar')).toBe(cmp);
+ cmp.destroy();
+ });