diff --git a/test/featherlight_test.js b/test/featherlight_test.js
index e6cf0778..cc5e5d78 100644
--- a/test/featherlight_test.js
+++ b/test/featherlight_test.js
@@ -409,6 +409,24 @@ var stubAjaxLoad = function(content) {
expect($('.featherlight iframe')).to.have.css('width').equal('323px');
expect($('.featherlight iframe')).to.have.css('min-height').equal('212px');
});
+
+ describe('generates an iframe with tag attributes', function() {
+ it('adds `allowfullescreen` attribute', function() {
+ $('').featherlight().click();
+
+ expect($('.featherlight iframe')).to.have.attr('src').equal('http://www.apple.com');
+ expect($('.featherlight iframe')).to.have.attr('allowfullscreen').equal('true');
+ });
+
+ it('does not add invalid attributes', function() {
+ $('').featherlight().click();
+
+ expect($('.featherlight iframe')).to.have.attr('src').equal('http://www.apple.com');
+ expect($('.featherlight iframe')).to.not.have.attr('allowfullscreen').equal('foo');
+ });
+ });
});
});