title: Qunit testing fails because document.get* won't work on test html page.
body: <p>I am just getting started with JS Unit Testing and am trying out qUnit.</p>
  
  <p>When my JS executes (via it's init() function) it grabs some nodes from the page which are required for the JS to run properly.</p>
  
  <p>Currently my qUnit test is failing before it even starts because it doesn't find those nodes in the test html file.</p>
  
  <p>I'm not using jQuery in my JS at all (no framework).</p>
  
  <p>I've done some looking around that implies I should load an iframe with my page onto the test.html page. I would then need to replace document with iframe.document or something similar, right? </p>
  
  <p>Is that possible? How would I do that so my document.getElementById() doesn't fail. It sounds like I need to set the context of the local test.html the same as the context of the iframe (window, document etc wise, at least, so it can reference the same nodes).</p>
  
  <p>Any thoughts?</p>