|
@@ -251,6 +251,7 @@ describe('misc', () => { |
|
|
<input id="notField" type="text" /> |
|
|
<input id="notField" type="text" /> |
|
|
<input id="disabled" disabled type="text" name="disabled" /> |
|
|
<input id="disabled" disabled type="text" name="disabled" /> |
|
|
<meter id="meter" min="1" max="10" value="5" /> |
|
|
<meter id="meter" min="1" max="10" value="5" /> |
|
|
|
|
|
<output id="output" name="random">5</output> |
|
|
<button type="submit">Submit</button> |
|
|
<button type="submit">Submit</button> |
|
|
</form> |
|
|
</form> |
|
|
</body> |
|
|
</body> |
|
@@ -263,6 +264,8 @@ describe('misc', () => { |
|
|
onSubmitted: (form: HTMLFormElement, submitter: any, search: any) => { |
|
|
onSubmitted: (form: HTMLFormElement, submitter: any, search: any) => { |
|
|
const meter = document.getElementById('meter'); |
|
|
const meter = document.getElementById('meter'); |
|
|
expect(getValue(meter)).toBe(5); |
|
|
expect(getValue(meter)).toBe(5); |
|
|
|
|
|
const output = document.getElementById('output'); |
|
|
|
|
|
expect(getValue(output)).toBe('5'); |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|