Skip to content

Commit

Permalink
Adding a test
Browse files Browse the repository at this point in the history
  • Loading branch information
moozzyk committed Nov 11, 2016
1 parent 4e855dc commit db7329b
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -63,7 +63,8 @@ QUnit.test("IFrame is created outside body.", function () {
var frame = $("body")[0].nextSibling; var frame = $("body")[0].nextSibling;
QUnit.equal(frame && frame.tagName, 'IFRAME'); QUnit.equal(frame && frame.tagName, 'IFRAME');


if (frame) { $.connection.transports.foreverFrame.stop(connection);
frame.parentNode.removeChild(frame);
}; // 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.