Permalink
Browse files

test webview implicit attributes as well

  • Loading branch information...
1 parent 69e48fc commit e11294d9e7e3ab5bdacff5da937e4a39503cf116 @jlipps committed Apr 5, 2013
Showing with 18 additions and 0 deletions.
  1. +5 −0 app/templates/guinea-pig.html
  2. +13 −0 test/helpers/webview.js
@@ -27,6 +27,11 @@
</p>
<input type="checkbox" id="unchecked_checkbox" name="unchecked_checkbox"/>
<input type="checkbox" id="checked_checkbox" name="checked_checkbox" checked="checked"/>
+<select name="selectbox">
+ <option value="value1">First option</option>
+ <option value="value2">Second option</option>
+ <option value="value3">Third option</option>
+</select>
</form>
<span id="your_comments">
View
@@ -170,6 +170,19 @@ module.exports.buildTests = function(webviewType) {
});
});
});
+ it('should return implicit attributes', function(done) {
+ loadWebView(h.driver, function() {
+ h.driver.elementsByTagName('option', function(err, els) {
+ should.not.exist(err);
+ els.length.should.equal(3);
+ els[2].getAttribute('index', function(err, attrVal) {
+ should.not.exist(err);
+ attrVal.should.equal('2');
+ done();
+ });
+ });
+ });
+ });
});
desc('getText', function(h) {

0 comments on commit e11294d

Please sign in to comment.