From 7460a7ef618a274607ea99aecae99fb158115c36 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Wed, 15 Jun 2011 22:58:32 +0200 Subject: Fix test for scenario.Application - should remove old iframe This behavior was changed by e83465c362c53ac7451183a775456f3112262f6e So this commit should have been part of e83465c362c53ac7451183a775456f3112262f6e Also removed hiding and navigating to about:blank as it makes no sense now... --- test/scenario/ApplicationSpec.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/scenario/ApplicationSpec.js b/test/scenario/ApplicationSpec.js index 673a328f..1cab11ec 100644 --- a/test/scenario/ApplicationSpec.js +++ b/test/scenario/ApplicationSpec.js @@ -79,14 +79,16 @@ describe('angular.scenario.Application', function() { expect(called).toBeTruthy(); }); - it('should hide old iframes and navigate to about:blank', function() { + it('should remove old iframes', function() { app.navigateTo('http://localhost/#foo'); + frames.find('iframe')[0].id = 'test'; + app.navigateTo('http://localhost/#bar'); var iframes = frames.find('iframe'); - expect(iframes.length).toEqual(2); - expect(iframes[0].src).toEqual('about:blank'); - expect(iframes[1].src).toEqual('http://localhost/#bar'); - expect(_jQuery(iframes[0]).css('display')).toEqual('none'); + + expect(iframes.length).toEqual(1); + expect(iframes[0].src).toEqual('http://localhost/#bar'); + expect(iframes[0].id).toBeFalsy(); }); it('should URL update description bar', function() { -- cgit v1.2.3