Merge pull request #13580 from Ethan-Arrowood/fix/json-apis-and-ajax-onclick-test

Fixed and Modified Test in Trigger Click Events with JavaScript
pull/13219/merge
Samuel Plumppu 2017-02-25 11:12:49 +01:00 committed by GitHub
commit f0ee4c33f2
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@
],
"tests": [
"assert(code.match(/document\\.getElementById\\(\\s*?('|\")getMessage\\1\\s*?\\)/g), 'message: Your code should use the <code>document.getElementById</code> method to select the <code>getMessage</code> element.');",
"assert(code.match(/\\.onclick=function\\(\\s*?\\)\\s*?{\\s*?};/g), 'message: Your code should add an <code>onclick</code> event handler.');"
"assert(typeof document.getElementById('getMessage').onclick === 'function', 'message: Your code should add an <code>onclick</code> event handler.');"
],
"solutions": [],
"hints": [],
@ -691,4 +691,4 @@
"translations": {}
}
]
}
}