[CB-873] [weinre] setTimeout/Interval() problems
authorPatrick Mueller <pmuellr@apache.org>
Thu, 14 Jun 2012 14:32:57 +0000 (10:32 -0400)
committerPatrick Mueller <pmuellr@apache.org>
Thu, 14 Jun 2012 14:32:57 +0000 (10:32 -0400)
commitf277c2e2503b1ccac9bed1a456775c14066932a1
tree7f416fc4777e8fccc8873e94ab170643a9f0fa1a
parentdd3e15617df037d480faeaae3f9b7c2627c7a146
[CB-873] [weinre] setTimeout/Interval() problems

weinre.web/modules/weinre/target/Target.coffee

- removed the "error" handler on window, since it
  doesn't seem to actually work, and generates
  bogus messages at least in the test case
  provided.

weinre.web/modules/weinre/target/Timeline.coffee

- change the after- bits of the setTimeout/Interval()
  hooks to check that the before- bits ran

- also changed the way contentLength and contentType
  are retrieved in the XHR hook to catch DOM errors,
  which Chrome recently started throwing
weinre.web/modules/weinre/target/Target.coffee
weinre.web/modules/weinre/target/Timeline.coffee