> > Then again it should be possible to re-write our script-test support > so that this is all you need to write: > > <script src="script-tests.js"></script> > <script> > description("foo"); > shouldBe("foo", "bar"); > </script> > <script src="end-script-test.js"></script> > > Instead of the current (cumbersome) templating system. Should be > possible to even get rid of the final "end-script-test.js" tag if > we're smart.
Yes! The templating system is just too much overhead, not to mention that it creates too many files. There's a few minor issues with the above though: 1. What if you want to include multiple js files? For example, then editing/selection tests include two JS files. Maybe we should just move all our JS code into one file? 2. The src will need to be relative, so you'll need some "../.." action. But that seems OK to me. Unless we had a script that put the JS files in every directory (or maybe in the resources subdirectory of every directory). Ojan
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev