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

Fixed and Modified Test in Trigger Click Events with JavaScript
This commit is contained in:
Samuel Plumppu
2017-02-25 11:12:49 +01:00
committed by GitHub

View File

@ -88,7 +88,7 @@
], ],
"tests": [ "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(/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": [], "solutions": [],
"hints": [], "hints": [],
@ -691,4 +691,4 @@
"translations": {} "translations": {}
} }
] ]
} }