r item = document.createElement('div');
        item.id = 'item4';
        item.textContent = 'item4';
        s.appendChild(item);
        // set selected
        s.selected = 'item4';
        asyncPlatformFlush(function() {
          // check selected class
          assert.isTrue(s.children[4].classList.contains('core-selected'));
          done();
        });
      });

    });

  </script>

</body>
</html>
