From 0aaf2cdd3a715b08bd41197b361ecd2af99cba0b Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sat, 19 Apr 2014 17:45:56 -0700 Subject: [PATCH] quote attribute values in selectors in JS unit tests for consistency --- js/tests/unit/modal.js | 4 ++-- 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 34912c2e9c..33952eba50 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 = $('') @@ -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 = $('') diff --git a/js/tests/unit/tooltip.js b/js/tests/unit/tooltip.js index e6ae119930..9a5f36f7b5 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.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') })