blob: 8cd798fe705256e948884de13500477f51c2a2a0 [file] [log] [blame]
function getValidationBubbleContents()
{
return `
(function() {
return JSON.stringify(uiController.contentsOfUserInterfaceItem('validationBubble'));
})();`
}
function getValidationBubble()
{
return new Promise((resolve) => {
setTimeout(() => {
setTimeout(() => {
testRunner.runUIScript(getValidationBubbleContents(), function(result) {
resolve(JSON.parse(result).validationBubble);
});
}, 0);
}, 0);
});
}
function getValidationMessage()
{
return getValidationBubble().then((validationBubble) => {
return validationBubble.message;
});
}