- 
      
 - 
        
Save charygao/a1d47641667850d11a57268a27f07fef to your computer and use it in GitHub Desktop.  
    Jasmine SpecRunner
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!DOCTYPE HTML> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Jasmine Spec Runner</title> | |
| <link rel="stylesheet" type="text/css" href="spec/jasmine/jasmine.css"> | |
| <script src="spec/jasmine/jasmine.js"></script> | |
| <script src="spec/jasmine/jasmine-html.js"></script> | |
| <!-- include source files here... --> | |
| <script src="js/calculator.js"></script> | |
| <!-- include spec files here... --> | |
| <script src="spec/calculatorSpec.js"></script> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| (function() { | |
| var jasmineEnv = jasmine.getEnv(); | |
| jasmineEnv.updateInterval = 1000; | |
| var trivialReporter = new jasmine.TrivialReporter(); | |
| jasmineEnv.addReporter(trivialReporter); | |
| jasmineEnv.specFilter = function(spec) { | |
| return trivialReporter.specFilter(spec); | |
| }; | |
| var currentWindowOnload = window.onload; | |
| window.onload = function() { | |
| if (currentWindowOnload) { | |
| currentWindowOnload(); | |
| } | |
| execJasmine(); | |
| }; | |
| function execJasmine() { | |
| jasmineEnv.execute(); | |
| } | |
| })(); | |
| </script> | |
| </body> | |
| </html> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment