Skip to content

Commit

Permalink
really add autofocus test
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Oct 11, 2013
1 parent 6b2f8c6 commit ffc0a86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/html/styling/unveil.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<body>
<x-test id="veiled"></x-test>
<x-test class="polymer-veiled"></x-test>

<input id="input" autofocus>
<polymer-element name="x-test">
<template>
x-test
Expand Down Expand Up @@ -79,6 +79,8 @@
'element classes are cleared after unveiling');
chai.assert.equal(document.querySelectorAll('.polymer-unveil').length, 0,
'element classes are cleared after unveiling');
chai.assert.equal(document.querySelector('#input'), wrap(document.activeElement),
'autoFocus works with unveiling');
done();
});
}, false);
Expand Down

0 comments on commit ffc0a86

Please sign in to comment.