Permalink
Browse files

Adding a test

  • Loading branch information...
1 parent 4e855dc commit db7329b0e1a6f2ed7aa2bcc3c8b95ed26f667380 @moozzyk moozzyk committed Nov 11, 2016
@@ -63,7 +63,8 @@ QUnit.test("IFrame is created outside body.", function () {
var frame = $("body")[0].nextSibling;
QUnit.equal(frame && frame.tagName, 'IFRAME');
- if (frame) {
- frame.parentNode.removeChild(frame);
- };
+ $.connection.transports.foreverFrame.stop(connection);
+
+ // verify the frame was removed when the transport was stopped
+ QUnit.isTrue($("body")[0].nextSibling === null);
});

0 comments on commit db7329b

Please sign in to comment.