Skip to content

Commit 028a502

Browse files
committed
Add length check to select unit test
1 parent 5137aa0 commit 028a502

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/unit/dom/dom.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ suite('DOM', function() {
811811
test('should update select value when HTML special characters are in the name', function() {
812812
testElement = myp5.createSelect(true);
813813
testElement.option('&', 'foo');
814+
assert.equal(testElement.elt.options.length, 1);
814815
assert.equal(testElement.elt.options[0].value, 'foo');
815816
testElement.option('&', 'bar');
816817
assert.equal(testElement.elt.options[0].value, 'bar');

0 commit comments

Comments
 (0)