javascript - How can I use HTML fixtures with Karma test runner using Qunit? -
i'm playing karma test runner ( http://karma-runner.github.io/0.8/index.html ) using qunit ( http://qunitjs.com ). succesfully created , ran simple tests (100% javascript), i'm trying use html fixtures in order test code interacts dom nodes. i'm able load these fixtures declaring them in "files" in way: {pattern: 'fixtures/myfixture.html', watched: true, served: true, included: false} it served karma's server, don't understand how can access dom :( let's suppose fixture simple html file containing following markup: <div id="container">hello world</div> how can write test can access node (the div)? "document" related "context.html" file under "static" folder far know... html of fixture?? i'm not using angularjs... solved adopting jasmine-jquery: https://github.com/velesin/jasmine-jquery (i use jasmine fixtures, tests still written using qunit). in configuration fil...