diff --git a/src/js/select2/i18n/af.js b/src/js/select2/i18n/af.js index 26519301..b2a70c97 100644 --- a/src/js/select2/i18n/af.js +++ b/src/js/select2/i18n/af.js @@ -39,6 +39,9 @@ define(function () { }, searching: function () { return 'Besig…'; + }, + removeAllItems: function () { + return 'Verwyder alle items'; } }; }); diff --git a/src/js/select2/i18n/ar.js b/src/js/select2/i18n/ar.js index be9ea68c..11f2c9e1 100644 --- a/src/js/select2/i18n/ar.js +++ b/src/js/select2/i18n/ar.js @@ -25,6 +25,9 @@ define(function () { }, searching: function () { return 'جاري البحث…'; + }, + removeAllItems: function () { + return 'قم بإزالة كل العناصر'; } }; }); \ No newline at end of file diff --git a/src/js/select2/i18n/az.js b/src/js/select2/i18n/az.js index 0d9bda43..8dae8749 100644 --- a/src/js/select2/i18n/az.js +++ b/src/js/select2/i18n/az.js @@ -22,6 +22,9 @@ define(function () { }, searching: function () { return 'Axtarılır…'; + }, + removeAllItems: function () { + return 'Bütün elementləri sil'; } }; }); diff --git a/src/js/select2/i18n/bg.js b/src/js/select2/i18n/bg.js index 909b4e55..e70af155 100644 --- a/src/js/select2/i18n/bg.js +++ b/src/js/select2/i18n/bg.js @@ -42,6 +42,9 @@ define(function () { }, searching: function () { return 'Търсене…'; + }, + removeAllItems: function () { + return 'Премахнете всички елементи'; } }; }); diff --git a/src/js/select2/i18n/bs.js b/src/js/select2/i18n/bs.js index 4446a0ee..f94b12cd 100644 --- a/src/js/select2/i18n/bs.js +++ b/src/js/select2/i18n/bs.js @@ -50,6 +50,9 @@ define(function () { }, searching: function () { return 'Pretraga…'; + }, + removeAllItems: function () { + return 'Uklonite sve stavke'; } }; }); diff --git a/src/js/select2/i18n/ca.js b/src/js/select2/i18n/ca.js index 7aa8cc6a..d8b98557 100644 --- a/src/js/select2/i18n/ca.js +++ b/src/js/select2/i18n/ca.js @@ -47,6 +47,9 @@ define(function () { }, searching: function () { return 'Cercant…'; + }, + removeAllItems: function () { + return 'Treu tots els elements'; } }; }); diff --git a/src/js/select2/i18n/cs.js b/src/js/select2/i18n/cs.js index 6d8a193e..9b3bce59 100644 --- a/src/js/select2/i18n/cs.js +++ b/src/js/select2/i18n/cs.js @@ -56,6 +56,9 @@ define(function () { }, searching: function () { return 'Vyhledávání…'; + }, + removeAllItems: function () { + return 'Odstraňte všechny položky'; } }; }); diff --git a/src/js/select2/i18n/da.js b/src/js/select2/i18n/da.js index 2ce169ff..fdf5ebe8 100644 --- a/src/js/select2/i18n/da.js +++ b/src/js/select2/i18n/da.js @@ -31,6 +31,9 @@ define(function () { }, searching: function () { return 'Søger…'; + }, + removeAllItems: function () { + return 'Fjern alle elementer'; } }; }); \ No newline at end of file diff --git a/src/js/select2/i18n/de.js b/src/js/select2/i18n/de.js index c804fed9..f8277c3b 100644 --- a/src/js/select2/i18n/de.js +++ b/src/js/select2/i18n/de.js @@ -35,6 +35,9 @@ define(function () { }, searching: function () { return 'Suche…'; + }, + removeAllItems: function () { + return 'Entferne alle Gegenstände'; } }; }); diff --git a/src/js/select2/i18n/dsb.js b/src/js/select2/i18n/dsb.js index 8180b215..af3ec46f 100644 --- a/src/js/select2/i18n/dsb.js +++ b/src/js/select2/i18n/dsb.js @@ -43,6 +43,10 @@ define(function () { }, searching: function () { return 'Pyta se…'; + }, + removeAllItems: function () { + // To DO : in Lower Sorbian. + return 'Remove all items'; } }; }); diff --git a/src/js/select2/i18n/el.js b/src/js/select2/i18n/el.js index 9cf8ee48..49922292 100644 --- a/src/js/select2/i18n/el.js +++ b/src/js/select2/i18n/el.js @@ -47,6 +47,9 @@ define(function () { }, searching: function () { return 'Αναζήτηση…'; + }, + removeAllItems: function () { + return 'Καταργήστε όλα τα στοιχεία'; } }; }); \ No newline at end of file diff --git a/src/js/select2/i18n/en.js b/src/js/select2/i18n/en.js index f226f2c6..960a84e8 100644 --- a/src/js/select2/i18n/en.js +++ b/src/js/select2/i18n/en.js @@ -39,6 +39,9 @@ define(function () { }, searching: function () { return 'Searching…'; + }, + removeAllItems: function () { + return 'Remove all items'; } }; }); diff --git a/src/js/select2/i18n/es.js b/src/js/select2/i18n/es.js index 10884bd7..d95f303f 100644 --- a/src/js/select2/i18n/es.js +++ b/src/js/select2/i18n/es.js @@ -47,6 +47,9 @@ define(function () { }, searching: function () { return 'Buscando…'; + }, + removeAllItems: function () { + return 'Eliminar todos los elementos'; } }; }); diff --git a/src/js/select2/i18n/et.js b/src/js/select2/i18n/et.js index d546ade2..589e4e7b 100644 --- a/src/js/select2/i18n/et.js +++ b/src/js/select2/i18n/et.js @@ -48,6 +48,9 @@ define(function () { }, searching: function () { return 'Otsin…'; + }, + removeAllItems: function () { + return 'Eemalda kõik esemed'; } }; }); diff --git a/src/js/select2/i18n/eu.js b/src/js/select2/i18n/eu.js index 4a1f8948..362745a2 100644 --- a/src/js/select2/i18n/eu.js +++ b/src/js/select2/i18n/eu.js @@ -46,6 +46,9 @@ define(function () { }, searching: function () { return 'Bilatzen…'; + }, + removeAllItems: function () { + return 'Kendu elementu guztiak'; } }; }); diff --git a/src/js/select2/i18n/fa.js b/src/js/select2/i18n/fa.js index 64ce1a5f..4b92d0e4 100644 --- a/src/js/select2/i18n/fa.js +++ b/src/js/select2/i18n/fa.js @@ -33,6 +33,9 @@ define(function () { }, searching: function () { return 'در حال جستجو...'; + }, + removeAllItems: function () { + return 'همه موارد را حذف کنید'; } }; }); diff --git a/src/js/select2/i18n/fi.js b/src/js/select2/i18n/fi.js index cf33a433..cc062d61 100644 --- a/src/js/select2/i18n/fi.js +++ b/src/js/select2/i18n/fi.js @@ -25,6 +25,9 @@ define(function () { }, searching: function () { return 'Haetaan…'; + }, + removeAllItems: function () { + return 'Poista kaikki kohteet'; } }; }); diff --git a/src/js/select2/i18n/fr.js b/src/js/select2/i18n/fr.js index e1aa7025..82b88a20 100644 --- a/src/js/select2/i18n/fr.js +++ b/src/js/select2/i18n/fr.js @@ -28,6 +28,9 @@ define(function () { }, searching: function () { return 'Recherche en cours…'; + }, + removeAllItems: function () { + return 'Supprimer tous les articles'; } }; }); diff --git a/src/js/select2/i18n/gl.js b/src/js/select2/i18n/gl.js index 3a9ffe31..a92d6a5a 100644 --- a/src/js/select2/i18n/gl.js +++ b/src/js/select2/i18n/gl.js @@ -34,6 +34,9 @@ define(function () { }, searching: function () { return 'Buscando…'; + }, + removeAllItems: function () { + return 'Elimina todos os elementos'; } }; }); \ No newline at end of file diff --git a/src/js/select2/i18n/he.js b/src/js/select2/i18n/he.js index 5a27f819..5192d866 100644 --- a/src/js/select2/i18n/he.js +++ b/src/js/select2/i18n/he.js @@ -51,6 +51,9 @@ define(function () { }, searching: function () { return 'מחפש…'; + }, + removeAllItems: function () { + return 'הסר את כל הפריטים'; } }; }); diff --git a/src/js/select2/i18n/hi.js b/src/js/select2/i18n/hi.js index e8ee1533..234a5926 100644 --- a/src/js/select2/i18n/hi.js +++ b/src/js/select2/i18n/hi.js @@ -34,6 +34,9 @@ define(function () { }, searching: function () { return 'खोज रहा है...'; + }, + removeAllItems: function () { + return 'सभी वस्तुओं को हटा दें'; } }; }); diff --git a/src/js/select2/i18n/hr.js b/src/js/select2/i18n/hr.js index 81462a5c..06223447 100644 --- a/src/js/select2/i18n/hr.js +++ b/src/js/select2/i18n/hr.js @@ -39,6 +39,9 @@ define(function () { }, searching: function () { return 'Pretraga…'; + }, + removeAllItems: function () { + return 'Ukloni sve stavke'; } }; }); diff --git a/src/js/select2/i18n/hsb.js b/src/js/select2/i18n/hsb.js index 14b1eda3..a72417d4 100644 --- a/src/js/select2/i18n/hsb.js +++ b/src/js/select2/i18n/hsb.js @@ -43,6 +43,10 @@ define(function () { }, searching: function () { return 'Pyta so…'; + }, + removeAllItems: function () { + // To DO : in Upper Sorbian. + return 'Remove all items'; } }; }); diff --git a/src/js/select2/i18n/hu.js b/src/js/select2/i18n/hu.js index fbe1d773..9c62748c 100644 --- a/src/js/select2/i18n/hu.js +++ b/src/js/select2/i18n/hu.js @@ -25,6 +25,9 @@ define(function () { }, searching: function () { return 'Keresés…'; + }, + removeAllItems: function () { + return 'Távolítson el minden elemet'; } }; }); diff --git a/src/js/select2/i18n/hy.js b/src/js/select2/i18n/hy.js index 098c3501..696e89dd 100644 --- a/src/js/select2/i18n/hy.js +++ b/src/js/select2/i18n/hy.js @@ -33,6 +33,9 @@ define(function () { }, searching: function () { return 'Որոնում․․․'; + }, + removeAllItems: function () { + return 'Հեռացնել բոլոր տարրերը'; } }; }); diff --git a/src/js/select2/i18n/id.js b/src/js/select2/i18n/id.js index 43b632e5..ceb2c1bb 100644 --- a/src/js/select2/i18n/id.js +++ b/src/js/select2/i18n/id.js @@ -25,6 +25,9 @@ define(function () { }, searching: function () { return 'Mencari…'; + }, + removeAllItems: function () { + return 'Hapus semua item'; } }; }); diff --git a/src/js/select2/i18n/is.js b/src/js/select2/i18n/is.js index 7a835f5a..f16283fa 100644 --- a/src/js/select2/i18n/is.js +++ b/src/js/select2/i18n/is.js @@ -36,6 +36,9 @@ define(function () { }, searching: function () { return 'Leita…'; + }, + removeAllItems: function () { + return 'Fjarlægðu öll atriði'; } }; }); diff --git a/src/js/select2/i18n/it.js b/src/js/select2/i18n/it.js index 76c2e4bc..2bedeb9b 100644 --- a/src/js/select2/i18n/it.js +++ b/src/js/select2/i18n/it.js @@ -43,6 +43,9 @@ define(function () { }, searching: function () { return 'Sto cercando…'; + }, + removeAllItems: function () { + return 'Rimuovi tutti gli oggetti'; } }; }); diff --git a/src/js/select2/i18n/ja.js b/src/js/select2/i18n/ja.js index c954c4f4..68568f32 100644 --- a/src/js/select2/i18n/ja.js +++ b/src/js/select2/i18n/ja.js @@ -31,6 +31,9 @@ define(function () { }, searching: function () { return '検索しています…'; + }, + removeAllItems: function () { + return 'すべてのアイテムを削除'; } }; }); diff --git a/src/js/select2/i18n/ka.js b/src/js/select2/i18n/ka.js index e3e64141..306ea90c 100644 --- a/src/js/select2/i18n/ka.js +++ b/src/js/select2/i18n/ka.js @@ -32,6 +32,9 @@ define(function () { }, searching: function () { return 'ძიება…'; + }, + removeAllItems: function () { + return 'ამოიღე ყველა ელემენტი'; } }; }); diff --git a/src/js/select2/i18n/km.js b/src/js/select2/i18n/km.js index 10e3d7e1..066d5230 100644 --- a/src/js/select2/i18n/km.js +++ b/src/js/select2/i18n/km.js @@ -31,6 +31,9 @@ define(function () { }, searching: function () { return 'កំពុងស្វែងរក...'; + }, + removeAllItems: function () { + return 'លុបធាតុទាំងអស់'; } }; }); diff --git a/src/js/select2/i18n/ko.js b/src/js/select2/i18n/ko.js index 9a2de109..03b5dc09 100644 --- a/src/js/select2/i18n/ko.js +++ b/src/js/select2/i18n/ko.js @@ -31,6 +31,9 @@ define(function () { }, searching: function () { return '검색 중…'; + }, + removeAllItems: function () { + return '모든 항목 삭제'; } }; }); diff --git a/src/js/select2/i18n/lt.js b/src/js/select2/i18n/lt.js index 500a519a..c6f8ad9e 100644 --- a/src/js/select2/i18n/lt.js +++ b/src/js/select2/i18n/lt.js @@ -47,6 +47,9 @@ define(function () { }, searching: function () { return 'Ieškoma…'; + }, + removeAllItems: function () { + return 'Pašalinti visus elementus'; } }; }); diff --git a/src/js/select2/i18n/lv.js b/src/js/select2/i18n/lv.js index 560cab0f..53324fd6 100644 --- a/src/js/select2/i18n/lv.js +++ b/src/js/select2/i18n/lv.js @@ -46,6 +46,9 @@ define(function () { }, searching: function () { return 'Meklēšana…'; + }, + removeAllItems: function () { + return 'Noņemt visus vienumus'; } }; }); diff --git a/src/js/select2/i18n/mk.js b/src/js/select2/i18n/mk.js index a27f0e81..60845112 100644 --- a/src/js/select2/i18n/mk.js +++ b/src/js/select2/i18n/mk.js @@ -42,6 +42,9 @@ define(function () { }, searching: function () { return 'Пребарување…'; + }, + removeAllItems: function () { + return 'Отстрани ги сите предмети'; } }; }); diff --git a/src/js/select2/i18n/ms.js b/src/js/select2/i18n/ms.js index 3c115621..3338c87e 100644 --- a/src/js/select2/i18n/ms.js +++ b/src/js/select2/i18n/ms.js @@ -25,6 +25,9 @@ define(function () { }, searching: function () { return 'Mencari…'; + }, + removeAllItems: function () { + return 'Keluarkan semua item'; } }; }); \ No newline at end of file diff --git a/src/js/select2/i18n/nb.js b/src/js/select2/i18n/nb.js index e005dcea..aee869be 100644 --- a/src/js/select2/i18n/nb.js +++ b/src/js/select2/i18n/nb.js @@ -25,6 +25,9 @@ define(function () { }, searching: function () { return 'Søker…'; + }, + removeAllItems: function () { + return 'Fjern alle elementer'; } }; }); diff --git a/src/js/select2/i18n/nl.js b/src/js/select2/i18n/nl.js index e8c016ad..7e4a5fea 100644 --- a/src/js/select2/i18n/nl.js +++ b/src/js/select2/i18n/nl.js @@ -38,6 +38,9 @@ define(function () { }, searching: function () { return 'Zoeken…'; + }, + removeAllItems: function () { + return 'Verwijder alle items'; } }; }); diff --git a/src/js/select2/i18n/pl.js b/src/js/select2/i18n/pl.js index 030a4ddc..1a3d890a 100644 --- a/src/js/select2/i18n/pl.js +++ b/src/js/select2/i18n/pl.js @@ -40,6 +40,9 @@ define(function () { }, searching: function () { return 'Trwa wyszukiwanie…'; + }, + removeAllItems: function () { + return 'Usuń wszystkie przedmioty'; } }; }); diff --git a/src/js/select2/i18n/ps.js b/src/js/select2/i18n/ps.js index 9c70af93..cb5797a2 100644 --- a/src/js/select2/i18n/ps.js +++ b/src/js/select2/i18n/ps.js @@ -40,6 +40,9 @@ define(function () { }, searching: function () { return 'لټول کيږي...'; + }, + removeAllItems: function () { + return 'ټول توکي لرې کړئ'; } }; }); diff --git a/src/js/select2/i18n/pt-BR.js b/src/js/select2/i18n/pt-BR.js index 7f769b69..6e5beb0a 100644 --- a/src/js/select2/i18n/pt-BR.js +++ b/src/js/select2/i18n/pt-BR.js @@ -41,6 +41,9 @@ define(function () { }, searching: function () { return 'Buscando…'; + }, + removeAllItems: function () { + return 'Remover todos os itens'; } }; }); diff --git a/src/js/select2/i18n/pt.js b/src/js/select2/i18n/pt.js index e66a8a2f..27bb0293 100644 --- a/src/js/select2/i18n/pt.js +++ b/src/js/select2/i18n/pt.js @@ -35,6 +35,9 @@ define(function () { }, searching: function () { return 'A procurar…'; + }, + removeAllItems: function () { + return 'Remover todos os itens'; } }; }); diff --git a/src/js/select2/i18n/ro.js b/src/js/select2/i18n/ro.js index 3faa7a77..75d17815 100644 --- a/src/js/select2/i18n/ro.js +++ b/src/js/select2/i18n/ro.js @@ -41,6 +41,9 @@ define(function () { }, searching: function () { return 'Căutare…'; + }, + removeAllItems: function () { + return 'Eliminați toate elementele'; } }; }); diff --git a/src/js/select2/i18n/ru.js b/src/js/select2/i18n/ru.js index 2ac11ec7..dd997582 100644 --- a/src/js/select2/i18n/ru.js +++ b/src/js/select2/i18n/ru.js @@ -53,6 +53,9 @@ define(function () { }, searching: function () { return 'Поиск…'; + }, + removeAllItems: function () { + return 'Удалить все элементы'; } }; }); diff --git a/src/js/select2/i18n/sk.js b/src/js/select2/i18n/sk.js index 7c9bfb97..f3e821d5 100644 --- a/src/js/select2/i18n/sk.js +++ b/src/js/select2/i18n/sk.js @@ -54,6 +54,9 @@ define(function () { }, searching: function () { return 'Vyhľadávanie…'; + }, + removeAllItems: function () { + return 'Odstráňte všetky položky'; } }; }); diff --git a/src/js/select2/i18n/sl.js b/src/js/select2/i18n/sl.js index a164044c..df12e402 100644 --- a/src/js/select2/i18n/sl.js +++ b/src/js/select2/i18n/sl.js @@ -49,6 +49,9 @@ define(function () { }, searching: function () { return 'Iščem…'; + }, + removeAllItems: function () { + return 'Odstranite vse elemente'; } }; }); diff --git a/src/js/select2/i18n/sq.js b/src/js/select2/i18n/sq.js index 10baa2e1..d3e1b8a5 100644 --- a/src/js/select2/i18n/sq.js +++ b/src/js/select2/i18n/sq.js @@ -40,6 +40,9 @@ define(function () { }, searching: function () { return 'Duke kërkuar…'; + }, + removeAllItems: function () { + return 'Hiq të gjitha sendet'; } }; }); diff --git a/src/js/select2/i18n/sr-Cyrl.js b/src/js/select2/i18n/sr-Cyrl.js index c61184e3..b8f8d41e 100644 --- a/src/js/select2/i18n/sr-Cyrl.js +++ b/src/js/select2/i18n/sr-Cyrl.js @@ -50,6 +50,9 @@ define(function () { }, searching: function () { return 'Претрага…'; + }, + removeAllItems: function () { + return 'Уклоните све ставке'; } }; }); diff --git a/src/js/select2/i18n/sr.js b/src/js/select2/i18n/sr.js index 7821b2b8..96f1b723 100644 --- a/src/js/select2/i18n/sr.js +++ b/src/js/select2/i18n/sr.js @@ -50,6 +50,9 @@ define(function () { }, searching: function () { return 'Pretraga…'; + }, + removeAllItems: function () { + return 'Уклоните све ставке'; } }; }); diff --git a/src/js/select2/i18n/sv.js b/src/js/select2/i18n/sv.js index 42bed7e5..e4e204f4 100644 --- a/src/js/select2/i18n/sv.js +++ b/src/js/select2/i18n/sv.js @@ -32,6 +32,9 @@ define(function () { }, searching: function () { return 'Söker…'; + }, + removeAllItems: function () { + return 'Ta bort alla objekt'; } }; }); diff --git a/src/js/select2/i18n/th.js b/src/js/select2/i18n/th.js index a7921eeb..01fc554f 100644 --- a/src/js/select2/i18n/th.js +++ b/src/js/select2/i18n/th.js @@ -31,6 +31,9 @@ define(function () { }, searching: function () { return 'กำลังค้นข้อมูล…'; + }, + removeAllItems: function () { + return 'ลบรายการทั้งหมด'; } }; }); diff --git a/src/js/select2/i18n/tk.js b/src/js/select2/i18n/tk.js index 1291ee1b..fb87b1d7 100644 --- a/src/js/select2/i18n/tk.js +++ b/src/js/select2/i18n/tk.js @@ -31,6 +31,10 @@ define(function () { }, searching: function () { return 'Gözlenýär…'; + }, + removeAllItems: function () { + // TO DO : add in turkmen, + return 'Remove all items'; } }; }); diff --git a/src/js/select2/i18n/tr.js b/src/js/select2/i18n/tr.js index fd8ffd3f..7fa1661d 100644 --- a/src/js/select2/i18n/tr.js +++ b/src/js/select2/i18n/tr.js @@ -31,6 +31,9 @@ define(function () { }, searching: function () { return 'Aranıyor…'; + }, + removeAllItems: function () { + return 'Tüm öğeleri kaldır'; } }; }); diff --git a/src/js/select2/i18n/uk.js b/src/js/select2/i18n/uk.js index 72067c9c..3471265e 100644 --- a/src/js/select2/i18n/uk.js +++ b/src/js/select2/i18n/uk.js @@ -38,6 +38,9 @@ define(function () { }, searching: function () { return 'Пошук…'; + }, + removeAllItems: function () { + return 'Видалити всі елементи'; } }; }); diff --git a/src/js/select2/i18n/vi.js b/src/js/select2/i18n/vi.js index 3d4b50e5..311c573b 100644 --- a/src/js/select2/i18n/vi.js +++ b/src/js/select2/i18n/vi.js @@ -32,6 +32,9 @@ define(function () { }, searching: function () { return 'Đang tìm…'; + }, + removeAllItems: function () { + return 'Xóa tất cả các mục'; } }; }); diff --git a/src/js/select2/i18n/zh-CN.js b/src/js/select2/i18n/zh-CN.js index 4aaec39e..18ec5605 100644 --- a/src/js/select2/i18n/zh-CN.js +++ b/src/js/select2/i18n/zh-CN.js @@ -31,6 +31,9 @@ define(function () { }, searching: function () { return '搜索中…'; + }, + removeAllItems: function () { + return '删除所有项目'; } }; }); diff --git a/src/js/select2/i18n/zh-TW.js b/src/js/select2/i18n/zh-TW.js index 80624f16..f2bf0c4e 100644 --- a/src/js/select2/i18n/zh-TW.js +++ b/src/js/select2/i18n/zh-TW.js @@ -28,6 +28,9 @@ define(function () { }, searching: function () { return '搜尋中…'; + }, + removeAllItems: function () { + return '刪除所有項目'; } }; }); diff --git a/src/js/select2/selection/allowClear.js b/src/js/select2/selection/allowClear.js index 3f7d0826..0de5b9bb 100644 --- a/src/js/select2/selection/allowClear.js +++ b/src/js/select2/selection/allowClear.js @@ -97,8 +97,10 @@ define([ return; } + var removeAll = this.options.get('translations').get('removeAllItems'); + var $remove = $( - '' + + '' + '×' + '' ); diff --git a/tests/selection/allowClear-tests.js b/tests/selection/allowClear-tests.js index f33fc0e5..a7ca726d 100644 --- a/tests/selection/allowClear-tests.js +++ b/tests/selection/allowClear-tests.js @@ -79,6 +79,26 @@ test('clear is displayed for placeholder', function (assert) { ); }); +test('clear icon should have title displayed', function (assert) { + var selection = new AllowClearPlaceholder( + $('#qunit-fixture .single-with-placeholder'), + allowClearOptions + ); + + var $selection = selection.render(); + + selection.update([{ + id: 'one', + test: 'one' + }]); + + assert.equal( + $selection.find('.select2-selection__clear').attr('title'), + 'Remove all items', + 'The clear icon should have title displayed' + ); +}); + test('clicking clear will set the placeholder value', function (assert) { var $element = $('#qunit-fixture .single-with-placeholder');