On 10/10/12 12:23 AM, Ian Bicking wrote:
Here's how I think you'd write a simple XHR test in both:
// SimpleTest aka MochiTest
req = new XMLHttpRequest();
req.open("GET", "/example.json");
How did example.json get there?
What if you need to test CORS?
With mochitest at this point you're doing some SJS work and whatnot.
// testharness
And here you have to go and do whatever is appropriate to your server
setup. Which is not part of testharness. Which is why the CORS tests
imported from Opera to the W3C ended up all broken, because they did not
configure the server correctly.
-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform