From a395ad1d7525d32f8bad1adcf2046f95458c1e88 Mon Sep 17 00:00:00 2001 From: Tim Kang Date: Mon, 17 Oct 2016 11:55:58 -0700 Subject: [PATCH] Add failing tests See #3895 --- tests/selection/multiple-tests.js | 2 ++ tests/selection/single-tests.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/selection/multiple-tests.js b/tests/selection/multiple-tests.js index 0d0f9c2e..5e996ea6 100644 --- a/tests/selection/multiple-tests.js +++ b/tests/selection/multiple-tests.js @@ -72,10 +72,12 @@ test('empty update clears the selection', function (assert) { var $rendered = $selection.find('.select2-selection__rendered'); $rendered.text('testing'); + $rendered.attr('title', 'testing'); selection.update([]); assert.equal($rendered.text(), ''); + assert.equal($rendered.attr('title'), undefined); }); test('escapeMarkup is being used', function (assert) { diff --git a/tests/selection/single-tests.js b/tests/selection/single-tests.js index 2731b2a5..9ab16367 100644 --- a/tests/selection/single-tests.js +++ b/tests/selection/single-tests.js @@ -72,10 +72,12 @@ test('empty update clears the selection', function (assert) { var $rendered = $selection.find('.select2-selection__rendered'); $rendered.text('testing'); + $rendered.attr('title', 'testing'); selection.update([]); assert.equal($rendered.text(), ''); + assert.equal($rendered.attr('title'), undefined); }); test('update renders the data text', function (assert) {