From 08d8b21d63234ccaebbabd98d442b0093c1bfe91 Mon Sep 17 00:00:00 2001 From: Jim Rollenhagen Date: Mon, 9 Sep 2013 15:14:30 -0700 Subject: [PATCH] fix(tooltip): restore html-unsafe compatibility with AngularJS 1.2 --- src/tooltip/test/tooltip.spec.js | 5 +++++ template/tooltip/tooltip-html-unsafe-popup.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tooltip/test/tooltip.spec.js b/src/tooltip/test/tooltip.spec.js index e392124adc..bfaaf1e7dd 100644 --- a/src/tooltip/test/tooltip.spec.js +++ b/src/tooltip/test/tooltip.spec.js @@ -363,6 +363,11 @@ describe( 'tooltipHtmlUnsafe', function() { elmScope = elm.scope(); })); + it( 'should render html properly', inject( function () { + elm.trigger( 'mouseenter' ); + expect( elmBody.find('.tooltip-inner').html() ).toBe( scope.html ); + })); + it( 'should show on mouseenter and hide on mouseleave', inject( function () { expect( elmScope.tt_isOpen ).toBe( false ); diff --git a/template/tooltip/tooltip-html-unsafe-popup.html b/template/tooltip/tooltip-html-unsafe-popup.html index 09a5bd506a..129016d9c1 100644 --- a/template/tooltip/tooltip-html-unsafe-popup.html +++ b/template/tooltip/tooltip-html-unsafe-popup.html @@ -1,4 +1,4 @@
-
+