I am testing the application of Magical Magic. The test page consists of the following scenarios:
- Jasmine:
<script src="../testing/lib/jasmine-1.3.1/jasmine.js"></script>
- Jasmine HTML Reporter:
<script src="../testing/lib/jasmine-1.3.1/jasmine-html.js"></script>
- My specification:
<script src="js/app.spec.js"></script>
- Setup: window.onload code copied exactly from gismub Jasmine page
The odd part, I keep getting this error:
Uncaught TypeError: Cannot read property 'SuiteView' of undefined
I looked at the stack trace. jasmine.HtmlReporter
prepares to display the final test result after all tests have completed. It calls jasmine.HtmlReporterHelpers.appendToSummary
, where jasmine.HtmlReporter
is undefined
, as shown in the screenshot below.
The object method cannot find itself. How can this happen?
Brian source share