diff options
| author | Jacob Thornton <[email protected]> | 2011-11-08 11:04:26 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-11-08 11:04:26 -0800 |
| commit | 0c7a80c79bb9a2e1761b4af804050962aac2fe57 (patch) | |
| tree | 34d748df126104eeec620b573743f212884bfa80 /js/tests | |
| parent | b37a336417b0ef447eed78a66762be1ac0f0fba4 (diff) | |
| download | bootstrap-0c7a80c79bb9a2e1761b4af804050962aac2fe57.tar.xz bootstrap-0c7a80c79bb9a2e1761b4af804050962aac2fe57.zip | |
remove selector options for popover, in favor of more generic content selector
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/bootstrap-popover.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/js/tests/unit/bootstrap-popover.js b/js/tests/unit/bootstrap-popover.js index 823526727..2c1483435 100644 --- a/js/tests/unit/bootstrap-popover.js +++ b/js/tests/unit/bootstrap-popover.js @@ -73,27 +73,4 @@ $(function () { $('#qunit-runoff').empty() }) - test("should allow arbitrary template html with title and content selector options", function() { - $.support.transition = false - var expectedTitle = 'Gotta make you understand' - , popover = $('<a href="#">@rvagg</a>') - .attr('title', expectedTitle) - .attr('data-content', '<p><b>Never gonna give you up</b>,</p><p>Never gonna let you down</p>') - .appendTo('#qunit-runoff') - .popover({ - html: true - , titleSelector: 'h1' - , contentSelector: '.rick > .roll' - , template: '<div class="rick"><h1></h1><div class="roll"></div></div>' - }) - .popover('show') - - ok($('.popover > div > h1').length, 'h1 tag was inserted') - ok($('.popover > div > h1').text() === expectedTitle) - ok($('.popover > .rick > .roll > p').length === 2, 'p > b tags were inserted') - popover.popover('hide') - ok(!$('.popover').length, 'popover was removed') - $('#qunit-runoff').empty() - }) - }) |
