| Index: lib/src/paper-radio-group/test/basic.html
|
| diff --git a/lib/src/paper-radio-group/test/basic.html b/lib/src/paper-radio-group/test/basic.html
|
| index f9a125551a704b9cd4433171fda35e10cd45a31a..1f3ec0a414779b62bd1edb6ac89860cda44cd9f2 100644
|
| --- a/lib/src/paper-radio-group/test/basic.html
|
| +++ b/lib/src/paper-radio-group/test/basic.html
|
| @@ -154,15 +154,29 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| // The selection should not change, but wait for a little bit just
|
| // in case it would and an event would be fired.
|
| setTimeout(function() {
|
| - try {
|
| - expect(items[0].checked).to.be.equal(true);
|
| - expect(items[1].checked).to.be.equal(false);
|
| - expect(items[2].checked).to.be.equal(false);
|
| - done();
|
| - } catch (e) {
|
| - done(e)
|
| - }
|
| - }, 200);
|
| + expect(items[0].checked).to.be.equal(true);
|
| + expect(items[1].checked).to.be.equal(false);
|
| + expect(items[2].checked).to.be.equal(false);
|
| + done();
|
| + }, 1);
|
| + });
|
| +
|
| + test('clicking the selected item should deselect if allow-empty-selection is set', function (done) {
|
| + var g = fixture('WithSelection');
|
| + g.allowEmptySelection = true;
|
| + var items = g.items;
|
| +
|
| + expect(items[0].checked).to.be.equal(true);
|
| + MockInteractions.tap(items[0]);
|
| +
|
| + // The selection should not change, but wait for a little bit just
|
| + // in case it would and an event would be fired.
|
| + setTimeout(function() {
|
| + expect(items[0].checked).to.be.equal(false);
|
| + expect(items[1].checked).to.be.equal(false);
|
| + expect(items[2].checked).to.be.equal(false);
|
| + done();
|
| + }, 1);
|
| });
|
|
|
| });
|
|
|