diff --git a/src/typeahead/test/typeahead.spec.js b/src/typeahead/test/typeahead.spec.js index b0a2baca0e..5a742b4b0a 100644 --- a/src/typeahead/test/typeahead.spec.js +++ b/src/typeahead/test/typeahead.spec.js @@ -70,7 +70,7 @@ describe('typeahead tests', function () { this.message = function () { return 'Expected "' + angular.mock.dump(typeaheadEl) + '" to be closed.'; }; - return typeaheadEl.css('display') === 'none' && findMatches(this.actual).length === 0; + return typeaheadEl.length === 0; }, toBeOpenWithActive: function (noOfMatches, activeIdx) { @@ -80,7 +80,7 @@ describe('typeahead tests', function () { this.message = function () { return 'Expected "' + this.actual + '" to be opened.'; }; - return typeaheadEl.css('display') === 'block' && liEls.length === noOfMatches && $(liEls[activeIdx]).hasClass('active'); + return typeaheadEl.length === 1 && liEls.length === noOfMatches && $(liEls[activeIdx]).hasClass('active'); } }); }); diff --git a/template/typeahead/typeahead-popup.html b/template/typeahead/typeahead-popup.html index 6cf53f5cc1..4e9f8785ed 100644 --- a/template/typeahead/typeahead-popup.html +++ b/template/typeahead/typeahead-popup.html @@ -1,5 +1,5 @@ -