fix(seed): strengthened buggy regex in an Applied Accessibility test (#16653)

Closes #16645
This commit is contained in:
Jason Kao
2018-02-08 01:18:29 -05:00
committed by mrugesh mohapatra
parent 63069db4bf
commit ca1ca41ec5

View File

@ -406,7 +406,7 @@
],
"tests": [
"assert($('audio').length === 1, 'message: Your code should have one <code>audio</code> tag.');",
"assert(code.match(/<\\/audio>/g) && code.match(/<\\/audio>/g).length === code.match(/<audio id=\"meowClip\" controls>/g).length, 'message: Make sure your <code>audio</code> element has a closing tag.');",
"assert(code.match(/<\\/audio>/g) && code.match(/<audio controls>/g) && code.match(/<\\/audio>/g).length === code.match(/<audio controls>/g).length, 'message: Make sure your <code>audio</code> element has a closing tag.');",
"assert($('audio').attr('controls'), 'message: The <code>audio</code> tag should have the <code>controls</code> attribute.');",
"assert($('source').length === 1, 'message: Your code should have one <code>source</code> tag.');",
"assert($('audio').children('source').length === 1, 'message: Your <code>source</code> tag should be inside the <code>audio</code> tags.');",