diff options
| author | Chris Rebert <[email protected]> | 2014-04-19 17:45:56 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-04-19 17:45:58 -0700 |
| commit | 0aaf2cdd3a715b08bd41197b361ecd2af99cba0b (patch) | |
| tree | e87c47d885d4915d006a468b8e8b34dccbd741b8 | |
| parent | a6214273b9f9a7d4858e55ac2c5379f71ab71314 (diff) | |
| download | bootstrap-0aaf2cdd3a715b08bd41197b361ecd2af99cba0b.tar.xz bootstrap-0aaf2cdd3a715b08bd41197b361ecd2af99cba0b.zip | |
quote attribute values in selectors in JS unit tests for consistency
| -rw-r--r-- | js/tests/unit/modal.js | 4 | ||||
| -rw-r--r-- | js/tests/unit/tooltip.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/js/tests/unit/modal.js b/js/tests/unit/modal.js index 34912c2e9..33952eba5 100644 --- a/js/tests/unit/modal.js +++ b/js/tests/unit/modal.js @@ -100,7 +100,7 @@ $(function () { .modal('toggle') }) - test('should remove from dom when click [data-dismiss=modal]', function () { + test('should remove from dom when click [data-dismiss="modal"]', function () { stop() $.support.transition = false var div = $('<div id="modal-test"><span class="close" data-dismiss="modal"></span></div>') @@ -174,7 +174,7 @@ $(function () { .modal('show') }) - test('should close reopened modal with [data-dismiss=modal] click', function () { + test('should close reopened modal with [data-dismiss="modal"] click', function () { stop() $.support.transition = false var div = $('<div id="modal-test"><div class="contents"><div id="close" data-dismiss="modal"></div></div></div>') diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index e6ae11993..9a5f36f7b 100644 --- a/js/tests/unit/tooltip.js +++ b/js/tests/unit/tooltip.js @@ -273,7 +273,7 @@ $(function () { test('should show tooltip with delegate selector on click', function () { var div = $('<div><a href="#" rel="tooltip" title="Another tooltip"></a></div>') div.appendTo('#qunit-fixture') - .tooltip({ selector: 'a[rel=tooltip]', trigger: 'click' }) + .tooltip({ selector: 'a[rel="tooltip"]', trigger: 'click' }) div.find('a').trigger('click') ok($('.tooltip').is('.fade.in'), 'tooltip is faded in') }) |
