| <script src="../../resources/js-test.js"></script> |
| <script src="form-validation.js"></script> |
| <button id="button">Submit</button> |
| <div style="height:800px; background:red"></div> |
| <input type=text required> |
| description("Tests that the validation bubble is shown even if the invalid field needs to be scrolled into view."); |
| getValidationMessage().then((_message) => { |
| if (_message !== "Fill out this field") |
| testFailed("Unexpected message: " + _message); |
| // Make sure the message stays visible. |
| getValidationMessage().then((_message) => { |
| shouldBeEqualToString("message", "Fill out this field"); |