Closed GoogleCodeExporter closed 8 years ago
edit: staying=>saying
Original comment by machineg...@gmail.com
on 4 Jan 2012 at 7:42
JsTD is designed for unittests, and following the best practices, doesn't much
offer support for globally scoped data. This includes HTML, as I'm sure you've
noticed, the body is cleared after each test. CSS is one of the few exceptions
(only because the support is fairly nascent, and I haven't precisely determined
the art of cross browser css enabling and disabling.)
For html please see: http://code.google.com/p/js-test-driver/wiki/HtmlDoc
So, roughly translated, I don't see the need for feature as you describe it
here. Not that the pain isn't relevant: There have been requests for loading
html held in external files
(http://code.google.com/p/js-test-driver/issues/detail?id=61) but I have yet to
see a clean way to ensure that a given html fragment is associated with a
TestCase, as part of the config. (I regret to note, it isn't a top priority at
the moment.)
This doesn't prevent you from implementing it as a plugin (though, the
configuration parsing is a little rough to change in head. I'm working on it.)
But it is a non-trivial exercise.
I'm marking this as a duplicate, because the pain would be alleviated by an
implementation for 61. Just not precisely as described here.
Original comment by corbinrs...@gmail.com
on 4 Jan 2012 at 7:59
Original issue reported on code.google.com by
machineg...@gmail.com
on 4 Jan 2012 at 7:41