I am currently trying to test some javascript code that is embedded in an html file. I do understand that it would be easier to test if it was external. That is not an option for me. Also I am currently using JsTestDriver as my framework. Other frameworks are not an option.
Any ideas on how to test the functions that are embedded?
Some info: I have yet to discover a way that JsTestDriver facilitates this, ive looked, but if you know a way id be interested. Ive spent some extensive time on this issue.
Testing embedded javascript
521 Views Asked by Edgar Torres At
1
--This isnt the whole answer, but its the hard part, just get to know JsTestDriver and this will make sense, this needs to be a function inside the test file where you have the test functions for the embedded JS--
script2.innerHTML = sample;
h.appendChild(script2);
YOUR ALL WELCOME!