envjs / env-js

A pure-JavaScript browser environment.
http://www.envjs.com/
87 stars 19 forks source link

improve dynamic script loading tests #3

Open envjs opened 13 years ago

envjs commented 13 years ago

one test is commented out in specs/html/spec.js but runs just fine

envjs commented 13 years ago

(from justin)

There's a few problems with the existing appendChild ...

  1. Does it work with insertBefore
  2. It needs to load async
  3. It needs to run in order
  4. It should work when a script is inserted anywhere
  5. It should work only when a script is inserted into an element on the document
  6. It should work if you are inserting a div who's child is the script
  7. It should start loading scripts after the insert