- From: Gérard Talbot <css21testsuite@gtalbot.org>
- Date: Tue, 19 Jan 2016 20:58:19 -0500
- To: Public CSS Test suite mailing list <public-css-testsuite@w3.org>
Hello, http://test.csswg.org/source/css-writing-modes-3/text-orientation-mixed-vrl-100.html http://test.csswg.org/source/css-writing-modes-3/text-orientation-mixed-vrl-100-ref.html When I load the test (with the cache cleared), it takes on average 5-7 seconds for the browser to fetch the font and then load it in the rendering engine (Gecko engine). If both test and reftest are loaded simultaneously, then such fetching and loading times should be the same for both files. So, I wonder if I should add class="reftest-wait" attribute into the document root element and into the reference file too and then remove it via script, like the documentation [1] states. Q1: Should I add class="reftest-wait" attribute into the document root element and into the reference file too and then remove it via script? And if I add class="reftest-wait" attribute into the document root element for the text-orientation-mixed-vrl-100 test, then shouldn't I assume that the font will be in the cache for the following tests (and associated reference files) also using the @font-face font: http://test.csswg.org/source/css-writing-modes-3/text-orientation-mixed-vlr-100.html http://test.csswg.org/source/css-writing-modes-3/text-orientation-upright-vrl-100.html http://test.csswg.org/source/css-writing-modes-3/text-orientation-upright-vlr-100.html Q2: Should I assume the font will be in the cache for the following tests, therefore I would not need to add class="reftest-wait" attribute into the document root element? [1]: Writing Reftests: Controlling When Comparison Occurs http://testthewebforward.org/docs/reftests.html#controlling-when-comparison-occurs - - - - - - - I deeply believe and am convinced that we should just add http://test.csswg.org/source/css-writing-modes-3/support/adobe-fonts/CSSHWOrientationTest.otf http://test.csswg.org/source/css-writing-modes-3/support/adobe-fonts/CSSFWOrientationTest.otf http://test.csswg.org/source/fonts/adobe-fonts/CSSHWOrientationTest.otf http://test.csswg.org/source/fonts/adobe-fonts/CSSFWOrientationTest.otf into that special "Fonts for CSS Testing" package https://www.w3.org/Style/CSS/Test/Fonts/ and avoid all these reftest-wait trick. I think this is more convenient, it creates cleaner, clearer tests too. Originally, the reftest-wait trick was aiming at overcoming delay and related load events in tests involving some kind of DOM manipulations and only for that purpose. Comments, feedback, ideas welcome. Gérard -- Test Format Guidelines http://testthewebforward.org/docs/test-format-guidelines.html Test Style Guidelines http://testthewebforward.org/docs/test-style-guidelines.html Test Templates http://testthewebforward.org/docs/test-templates.html CSS Naming Guidelines http://testthewebforward.org/docs/css-naming.html Test Review Checklist http://testthewebforward.org/docs/review-checklist.html CSS Metadata http://testthewebforward.org/docs/css-metadata.html
Received on Wednesday, 20 January 2016 01:58:54 UTC