- From: David Carlisle <davidc@nag.co.uk>
- Date: Thu, 25 Nov 2010 10:03:27 +0000
- To: "public-html-testsuite@w3.org" <public-html-testsuite@w3.org>
I have pushed http://test.w3.org/html/tests/submission/DavidCarlisle/math-render01.html not to ask for approval yet, but to ask for policy regarding choice of javascript methods. I don't want these mathml tests to be a test of supported javascript but I wanted to add some basic tests that didn't just test parsing. The above just checks that the dimensions of (a span containing) an mfrac are the same as the dimensions of the same content with all mathml elements replaced by spans. I.e., it just checks that it does _something_ with the math. I used offsetWidth but the specification and implementation of this and related methods like scrollWidth etc seems to have had a somewhat tortuous history. If the above is acceptable, there are of course several other MathML elements that we could test in a similar way, but I wanted to test the water first, to see whether this is an acceptable testing strategy. Note the (current) intention here is to keep the mathml-in-html tests to purely automatic javascript tests using the provided test harness. Implementations of MathML are strongly encouraged to also use the MathML test suite at http://www.w3.org/Math/testsuite/ which is a large collection of mainly visual tests against reference images, but it seems best to keep that separate at this stage. David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
Received on Thursday, 25 November 2010 10:04:11 UTC