diff --git a/test/basic.html b/test/basic.html
index e9dbfc0..30768b5 100644
--- a/test/basic.html
+++ b/test/basic.html
@@ -167,19 +167,22 @@
});
test('`selectIndex()` selects an item with the given index', function() {
- assert.equal(s2.selectedItem, s2.items[2]);
+ Polymer.Base.async(function() {
+ assert.equal(s2.selected, 'item2');
+ assert.equal(s2.selectedItem, s2.items[2]);
- s2.selectIndex(1);
- assert.equal(s2.selected, 'item1');
- assert.equal(s2.selectedItem, s2.items[1]);
+ s2.selectIndex(1);
+ assert.equal(s2.selected, 'item1');
+ assert.equal(s2.selectedItem, s2.items[1]);
- s2.selectIndex(3);
- assert.equal(s2.selected, 'item3');
- assert.equal(s2.selectedItem, s2.items[3]);
+ s2.selectIndex(3);
+ assert.equal(s2.selected, 'item3');
+ assert.equal(s2.selectedItem, s2.items[3]);
- s2.selectIndex(4);
- assert.equal(s2.selected, 'item4');
- assert.equal(s2.selectedItem, s2.items[4]);
+ s2.selectIndex(4);
+ assert.equal(s2.selected, 'item4');
+ assert.equal(s2.selectedItem, s2.items[4]);
+ }, 1);
});
});