From 0c2759869fa280b09060de6112be8c546088a419 Mon Sep 17 00:00:00 2001 From: Aaron Newton Date: Fri, 14 Oct 2011 17:25:44 -0700 Subject: [PATCH] updating the ajax test to provide a bit more time for the request --- .../Specs/more-behaviors/Delegators/Delegator.Ajax.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/Specs/more-behaviors/Delegators/Delegator.Ajax.js b/Tests/Specs/more-behaviors/Delegators/Delegator.Ajax.js index a004a19..751a371 100644 --- a/Tests/Specs/more-behaviors/Delegators/Delegator.Ajax.js +++ b/Tests/Specs/more-behaviors/Delegators/Delegator.Ajax.js @@ -9,7 +9,7 @@ provides: [Delegator.Ajax.Tests] (function(){ - + var getDom = function(filter, wrap){ var container = new Element('div[id=container]'); var wrapper = new Element('div[id=wrapper]').inject(container); @@ -41,14 +41,14 @@ provides: [Delegator.Ajax.Tests] describe('Delegator.Ajax (' + action + ')', function(){ it('Should load in ajax: ' + action, function(){ del.trigger('Ajax', link, 'click'); - waits(200); + waits(400); runs(function(){ expect(dom.getElement('#wrapper').get('html')).toBe(results[action]); }); }); }); }); - + ['injectBottom', 'injectTop', 'replace', 'update', 'injectAfter', 'injectBefore'].each(function(action){ var dom = getDom(action); var del = new Delegator().attach(dom), @@ -57,12 +57,12 @@ provides: [Delegator.Ajax.Tests] it('Should load in ajax with a filter: ' + action, function(){ link.setData('ajax-filter', 'p'); del.trigger('Ajax', link, 'click'); - waits(200); + waits(400); runs(function(){ expect(dom.getElement('#wrapper').get('html')).toBe(results[action]); }); }); }); }); - + })(); \ No newline at end of file